[fpc-pascal] Empty record inside another record ?
daniel.mantione at freepascal.org
Sat Mar 1 11:33:11 CET 2008
Op Fri, 29 Feb 2008, schreef Skybuck Flying:
> There is another major drawback to your supposedly better method:
> Object inheritance forces all fields to be accessable from the root:
> SomeRoot.SomeField := ...;
> While nesting has nice grouping:
> SomeRoot.SomeHeader.SomeOtherHeader.SomeField := 5;
I'd say it is a metter of taste. Anyway, you are free to use any method
you like as both are valid code. End of discussion.
More information about the fpc-pascal