record_booleans |
Smart pascal source code
type TRec = record a: Boolean; b: TObject; end; var r: TRec; WriteLn(r.a); r.a := True; r.b := new TObject; WriteLn(r.a); WriteLn(r.b.ClassName); r.a := not r.a; WriteLn(r.a); {<<< RESULT - CONSOLE LOG >>> ----------------------------- False True TObject False ----------------------------- {<<<<<<<<< THE END >>>>>>>>>}