[fpc-pascal] Ideas for namespace implementation

Marco van de Voort marcov at stack.nl
Tue Jul 27 14:18:23 CEST 2010

In our previous episode, Anthony Walter said:
> I'd say that the way FPC handles things different than Delphi in some cases
> is worse. Take generics, which you mentioned.

Worse or not is a personal matter of taste.

Keep in mind that the Delphi syntax (since essentially C++) was considered
> type
>   generic TSomething<T> = class
> is worse than
> type
>   TSomething<T> = class
> The only reason I can see having put the word "generic" in front of the
> identifier, something which Pascal has never done (put keywords in front of
> identifiers when declaring types), was to make it easier for the compiler
> author. That is to say, negate the need to look ahead.

And afaik that was indeed the main reason to do it this way. Short
lookaheads and as little ambiguity and context dependance of syntax was
considered more pascal.

More information about the fpc-pascal mailing list