การเรนเดอร์th-TH

protecta

Translation status: ภาษาไทย reader-locale proof. Code fences render through the th-TH pipeline; prose is canonical Latin.

Reserved visibility annotation rejected by semantic analysis.

Aliases: protected

Syntax: @ protecta

Category#

modifier

Examples#

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

Reserved visibility annotation rejected by semantic analysis.

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

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

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

main {
    print protectum()
}