Inner modules / namespaces

Lars Ivar Igesund larsivar at igesund.net
Tue Sep 18 04:38:06 PDT 2007


Bill Baxter wrote:

> Walter Bright wrote:
>> Bill Baxter wrote:
>>> Ah, that's a good idea.
>>> [Added it to the enh request.]
>> 
>> Also, structs inherently create a new namespace. Just declare a struct
>> and make its members static.
> 
> Yes, well I discarded that one right off the bat.  Defining objects
> never meant to be instantiated just seems silly.  Somehow the template
> trick seems slightly less kludgy.
> 
> --bb

I find the other solution to be the most kludgy :) Matter of taste as
always.

-- 
Lars Ivar Igesund
blog at http://larsivi.net
DSource, #d.tango & #D: larsivi
Dancing the Tango



More information about the Digitalmars-d mailing list