On Sun, 12 Jun 2011 14:59:57 -0400, Nick Sabalausky wrote: > "Andrei Alexandrescu" <[email protected]> wrote in message > news:[email protected]... >> >> 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
