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

radix-lane

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

Braced canonical @ radix lane routing record for the Rust HIR-direct lane.

Syntax: @ radix { เลน = \"hir-direct\" }

Category#

lane

  • radix
  • annotation-sugar

Examples#

radix/corpus/annotation-sugar/radix-lane-braced.fab (canonical · annotation)#

Braced canonical @ radix lane routing record for the Rust HIR-direct lane.

# =============================================================================
# radix-lane — Braced canonical @ radix เลน routing record for the Rust
# HIR-direct เลน.
# =============================================================================
#
# What this teaches:
#   • Compiler เลน routing — `@ radix { เลน = "hir-direct" }` selects a
#     specific backend compilation เลน
#   • Braced annotation syntax — the key-value pair specifies the เลน
#     identifier for the Radix compiler
#
# Common mistakes:
#   • missing `@ annotatio` on a contract ชนิด, or specifying an invalid or unsupported compiler เลน name
#
# See also: radix, annotation-sugar
# =============================================================================

@ radix { เลน = "hir-direct" }
fn loss() → int {
    return 1
}

main {
    print loss()
}

Expected output:

1