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

ป้องกัน

Translation status: ภาษาไทย reader-locale proof. Term names and code fences follow the th-TH pack; supporting prose may still be English.

Reserved visibility annotation rejected by semantic analysis.

Aliases: protected

Syntax: @ ป้องกัน

Category#

modifier

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()
}