record nested 2



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