ludic/selfhost/tests/memsys.ludic
Orkuncakilkaya 2f19c8d8e2 refactor(stdlib): de-abbreviate namespaces (Mem/Sys/Net/Collide)
Expand the abbreviated public namespaces to full words, part of the
language-wide de-abbreviation pass:
  Mem -> Memory, Sys -> System, Net -> Network, Collide -> Collision

Math stays (universally accepted, like int/bool). Renames the dispatch
strings, LSP signatures, docs (dirs, files, frontmatter), and the
inventory manifest; behavior is byte-identical (the bare rt_ targets are
unchanged). Reseeded; C-free bootstrap fixpoint holds; all suites green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-30 01:30:47 +03:00

19 lines
507 B
Text

program T {
entry {
let b = Memory.bytes(8)
Memory.poke(b, 0, 65)
Memory.poke(b, 1, 66)
print(Memory.peek(b, 0)) # 65
print(Memory.peek(b, 1)) # 66
Memory.fill(b, 0, 8)
print(Memory.peek(b, 0)) # 0
let c = Memory.bytes(8)
Memory.poke(b, 3, 99)
Memory.copy(c, b, 8)
print(Memory.peek(c, 3)) # 99
let w = Memory.words(4)
w[0] = 12345
print(w[0]) # 12345
print(System.arg_count()) # 1
}
}