Inner modules / namespaces
Bill Baxter
dnewsgroup at billbaxter.com
Tue Sep 18 04:35:26 PDT 2007
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
More information about the Digitalmars-d
mailing list