taking a character out of a string

Jarrett Billingsley kb3ctd2 at yahoo.com
Mon Aug 18 23:35:38 PDT 2008


"bearophile" <bearophileHUGS at lycos.com> wrote in message 
news:g8dcs6$lro$1 at digitalmars.com...

> The specification of the names you want to import from the modules is a 
> good practice that allows you to:
> - keep your namespace more clean, avoiding some name clashes, because 
> import foo imports all the names in foo and some more (see below).

...except due to bugs 313 and 314, you end up polluting the namespace even 
more when using selective imports, since they are always made implicitly 
public.  Fun.

> A better semantic is to change the module system to make this:
> import somemodule;
> mean just import the 'somemodule' module name in the current namespace.
> So then somemodule.somefun() is legal but somefun() is not.

So, you want "static import" to be the default. 




More information about the Digitalmars-d-learn mailing list