string_record_field_get_set |
Smart pascal source code
type TTest = record F: String := 'hello'; end; var o: TTest; WriteLn(o.F); WriteLn(o.F[3]); o.F[3] := 'z'; WriteLn(o.F); WriteLn(o.F[3]); {<<< RESULT - CONSOLE LOG >>> ----------------------------- hello l hezlo z ----------------------------- {<<<<<<<<< THE END >>>>>>>>>}