Renderingen-US

protected

Translation status: English reader-locale proof. Term names and code fences follow the en pack; supporting prose may still be English.

Reserved visibility annotation rejected by semantic analysis.

Aliases: protected

Syntax: @ protected

Category#

modifier

Examples#

radix/corpus/protecta/protecta.fab (canonical · keyword)#

Reserved visibility annotation rejected by semantic analysis.

# =============================================================================
# protected — Reserved visibility annotation rejected by semantic analysis.
# =============================================================================
#
# What this teaches:
#   • Reserved keyword — `@ protected` 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 `@ protected` to provide access control — it is reserved and rejected at compile time (SEM018).
#
# See also: public, private
# =============================================================================

# @ protected is reserved visibility syntax
#
# This exemplum intentionally fails to compile. `@ protected` is reserved and
# has no active package, subclass, or sibling-file visibility meaning.
#
# GRAMMAR:
#   annotatedDecl :← '@' 'protected' funcDecl
#
# EXPECTED ERROR:
#   `@ protected` is reserved and has no active visibility meaning

@ protected
fn protectum() → string {
    return "protecta"
}

main {
    print protectum()
}