What about old borland objects (heap and stack initialization) process?
I am guessing they are more like records... or do heap objects act like classes in that they are filled with zeros?
p.s. I think the inconsistent behavior between local scope records and global scope records is kind of a flaw/danger in modern pascal.. as the bugs may not be caught until someone builds a program with local scope var.. and for eg. many demonstrations are built in simple global console programs as test cases. Nowadays I always (try to) build things inside a procedure in a test case to ensure local scope is being used. But as humans make mistakes, again I think this part of modern pascal can be improved and we should push to the language less dangerous by default.
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal