record nested



record_nested
Smart pascal source code
type TParent = record A: string; Sub: record B: String; end; end; var r1, r2: TParent; r1.A := 'hello'; r1.Sub.B := 'world'; r2 := r1; WriteLn(r2.A); WriteLn(r2.Sub.B); {<<< RESULT - CONSOLE LOG >>> ----------------------------- hello world ----------------------------- {<<<<<<<<< THE END >>>>>>>>>}