[fpc-pascal] Ideas for namespace implementation

Anthony Walter sysrpl at gmail.com
Mon Jul 26 14:08:20 CEST 2010


On Mon, Jul 26, 2010 at 4:40 AM, Graeme Geldenhuys
<graemeg.lists at gmail.com>wrote:

> In short - Delphi in-compatibility is not a
> problem here, just like Generics or Compiler Modes or ..... FPC doesn't do
> everything like Delphi, sometimes it does things _better_ than Delphi. FPC
> Namespaces would hopefully fall under the latter.


I'd say that the way FPC handles things different than Delphi in some cases
is worse. Take generics, which you mentioned.

type
  generic TSomething<T> =3D class

is worse than

type
  TSomething<T> =3D 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freepascal.org/lists/fpc-pascal/attachments/20100726/42b2=
987e/attachment.htm


More information about the fpc-pascal mailing list