Flag proposal

Lars T. Kyllingstad public at kyllingen.NOSPAMnet
Mon Jun 13 02:09:20 PDT 2011


On Sun, 12 Jun 2011 14:59:57 -0400, Nick Sabalausky wrote:

> "Andrei Alexandrescu" <SeeWebsiteForEmail at erdani.org> wrote in message
> news:it1cvf$21d4$1 at digitalmars.com...
>>
>> It's the namespace pollution and the non-self-containedness of the
>> function that's most troublesome. Also see Steve's point about methods.
>> It's just untenable - to use the idiom with a class/struct method, you
>> need to go all the way _outside_ of it an plant a symbol there.
>>
>>
> You can't put an enum in a class/struct?

Yes, but then you have to qualify it with the name of the class/struct 
when using it.  See Steve's post:

http://www.digitalmars.com/webnews/newsgroups.php?
art_group=digitalmars.D&article_id=138281

-Lars


More information about the Digitalmars-d mailing list