Hi!
I have a question concerning the use of units.
Consider this example:
(*****************) (** Queue.pas **) (*****************)
unit Queue;
interface
function isEmpty : boolean; {..}
implementation
{..}
begin {..} end. { Queue }
(**************) (* Test.pas *) (**************)
uses Queue;
begin {..}
if Queue.empty then writeln('Queue is empty!');
{..} end. { Test }
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?
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?
Regards, Marc