string bounds |
Smart pascal source code
var s: String = 'a'; var i: Integer; try i := 0; s[i] := '!'; WriteLn('doh!'); except end; try i := 2; s[i] := '!'; WriteLn('doh!'); except end; try i := 0; s[i] := Chr(32); WriteLn('doh!'); except end; try i := 2; s[i] := Chr(32); WriteLn('doh!'); except end;