begin
! %prim %byte %integer %map %spec charno( %string(255) s,%integer n )
byteintegermap good charno(string(*)name s, integer n)
result == BYTEINTEGER(ADDR(s)+n)
end
byteintegermap my charno(string(255) s, integer n)
result == BYTEINTEGER(ADDR(s)+n)
end
string(255) string; string = "000"
good charno(string, 1) = '1' ;! <-- should affect string
my charno(string, 2) = '2' ;! <-- should not affect string
charno(string, 3) = '3' ;! <-- implementation-dependent!
printstring(string); newline ;! This outputs: ??? (probably should be "100")
endofprogram