I have made a discovery

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Sat Apr 18 19:47:35 PDT 2015


On Sun, 19 Apr 2015 01:53:41 +0000, Adam D. Ruppe wrote:

> On Sunday, 19 April 2015 at 00:39:03 UTC, ketmar wrote:
>> but it's much easier to simply write "new Exception" instead of
>> "allocateWithMyCoolScheme!Exception".
> 
> eh i would just call it "New!Exception" where the cool scheme is in the
> module name. So you "import mycoolscheme;" which defines the New.
> 
> Then you can disambiguate with the usual module features if you use two
> schemes in the same scope. It'd be so beautiful.

ah, i keep forgetting about D ability to rename imports and detect name 
conflicts. too much delphi in my youth. ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150419/d32a53ca/attachment.sig>


More information about the Digitalmars-d mailing list