Files
hakorune/examples/jit_string_length_policy_demo.hako

14 lines
292 B
Plaintext

// @jit-debug
// @plugin-builtins
static box Main {
main() {
local s
s = new StringBox("") // empty string
// In a real case we'd set content; plugin StringBox.length() is RO path demo
// For observable behavior, length() on empty should be 0
return s.length()
}
}