Wren Lee wrote:
i := zero; r := zero; d := zero;
GPC does not have such an "untyped zero". You have to use instead: i := 0; r := 0; (* or: r := 0.0 *) d := ''; In principle, it would be possible to implement such a thing, but we are not going to assign a high priority to it right now. In fact we are close to a "feature freeze" for gpc-2.1. And in fact it should not be that difficult to implement such a thing. If you want to try yourself on it, be welcome. :)
I've searched the documentation but cannot find anything, the closest I've come is to pass an untyped parameter and its size to a function, then use pointers to set the memory to zero (0x00). This works OK for GPC, but DEC-PASCAL doesn't seem to like untyped parameters.
It does not work okay for GPC since zeroing the memory of a string or schema or file will spoil its data integrity. Hope this helps, Peter -- http://home.pages.de/~Peter.Gerwinski/ - G-N-U GmbH: http://www.g-n-u.de Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-19990118 GnuPG key fingerprint: 9E7C 0FC4 8A62 5536 1730 A932 9834 65DB 2143 9422 keys: ftp://ftp.gerwinski.de/pub/keys/ - AntiSpam: http://spam.abuse.net