Hi! Marc van Woerkom wrote:
[...] if Queue.empty then writeln('Queue is empty!'); [...] I expected to be able to use a "Queue." qualifier in front of the empty call in the test routine. But the compiler complains about an undeclared symbol Queue.
Is this a bug or a feature?
This is a bug, or, a missing feature (qualified identifiers).
If the latter, how am I supposed to differentiate between the empty function of an Queue and a Stack, if not by using Queue.empty / Stack.empty?
You can declare objects `Queue' and `Stack' with a method `empty'. (Both can have a common abstract parent that exports a dummy virtual method `empty' that always returns `true', etc.:) 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