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.:)
Dang. That smells like BP OOP.
Brings me directly to the question what standard you are aiming for.
Seems like there are a lot:
- Standard Pascal (Jensen/Wirth or still different?) - Iso Pascal (seems to be a bit extended) - Turbo/Borland Pascal 2, 3, 4, 5, 6, 7, .. Delphi? - GNU extensions
And having read a bit through the Unit/Module issues, some features are overlapping.
Any plans to enforce certain behaviours with switches like the gcc -ansi switch?
Regards, Marc