record_var_as_prop |
Smart pascal source code
type TBase = record Field: Integer; class var v: Integer; property rv: Integer read v; property wv: Integer write v; property rwv: Integer read v write v; end; TBase.v := 1; WriteLn(TBase.rv); TBase.wv := 2; WriteLn(TBase.rwv); TBase.rwv := 3; WriteLn(TBase.v); {<<< RESULT - CONSOLE LOG >>> ----------------------------- 1 2 3 ----------------------------- {<<<<<<<<< THE END >>>>>>>>>}