保护
Translation status: 简体中文 reader-locale proof. Term names and code fences follow the zh-Hans pack; supporting prose may still be English.
Reserved visibility annotation rejected by semantic analysis.
Aliases: protected
Syntax: @ 保护
Category#
modifier
Related#
Examples#
radix/corpus/protecta/protecta.fab (canonical · keyword)#
Reserved visibility annotation rejected by semantic analysis.
# =============================================================================
# 保护 — Reserved visibility annotation rejected by semantic analysis.
# =============================================================================
#
# What this teaches:
# • Reserved keyword — `@ 保护` is syntactically valid but semantically
# rejected; it has no active visibility meaning
# • This demonstrates how Faber reserves syntax for future use without
# committing to semantics
#
# Common mistakes:
# • Expecting `@ 保护` to provide access control — it is reserved and rejected at compile time (SEM018).
#
# See also: 公开, 私有
# =============================================================================
# @ 保护 is reserved visibility syntax
#
# This exemplum intentionally fails to compile. `@ 保护` is reserved and
# has no active package, subclass, or sibling-file visibility meaning.
#
# GRAMMAR:
# annotatedDecl :← '@' '保护' funcDecl
#
# EXPECTED ERROR:
# `@ 保护` is reserved and has no active visibility meaning
@ protected
fn protectum() → string {
return "protecta"
}
main {
print protectum()
}