[fpc-pascal] Re: Ideas for namespace implementation

Marcos Douglas md at delfire.net
Mon Jul 26 16:39:26 CEST 2010


On Mon, Jul 26, 2010 at 11:33 AM, Reimar Grabowski <reimgrab at web.de> wrote:
> On Mon, 26 Jul 2010 11:23:31 -0300
> Marcos Douglas <md at delfire.net> wrote:
>
>> IMHO, is better to use the ':' like  myspace:sysutils
>
> Even better C++ style:
>
> uses
>  myspace::sysutils;
>
> begin
>  Exception; // no error
>  SysUtils.Exception; // identifier not found
>  MySpace::SysUtils.Exception; // no error
> end.

Yes, but only if have a problem with the sintaxe namespace:unit, I think.


MD



More information about the fpc-pascal mailing list