phase: 20.49 COMPLETE; 20.50 Flow+String minimal reps; 20.51 selfhost v0/v1 minimal (Option A/B); hv1-inline binop/unop/copy; docs + run_all + CURRENT_TASK -> 21.0
This commit is contained in:
11
examples/jit_string_param_length.hako
Normal file
11
examples/jit_string_param_length.hako
Normal file
@ -0,0 +1,11 @@
|
||||
// Param-string JIT HostCall PoC (length)
|
||||
box Utils {
|
||||
strlen(s) {
|
||||
return s.length()
|
||||
}
|
||||
}
|
||||
|
||||
s = "Hello, Nyash!"
|
||||
u = new Utils()
|
||||
print(u.strlen(s))
|
||||
|
||||
Reference in New Issue
Block a user