Inner modules / namespaces
Bill Baxter
dnewsgroup at billbaxter.com
Tue Sep 18 04:41:31 PDT 2007
Lars Ivar Igesund wrote:
> 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.
At least we seem to be in agreement that both solutions register on the
kludge-o-meter. :-)
--bb
More information about the Digitalmars-d
mailing list