[dox] enum specs vs reality

H. S. Teoh hsteoh at quickfur.ath.cx
Wed Aug 28 12:27:51 PDT 2013


On Wed, Aug 28, 2013 at 09:12:44PM +0200, Andrej Mitrovic wrote:
> On 8/28/13, Jacob Carlborg <doob at me.com> wrote:
> > Yes, it's sometimes usable to be able to declare dummy types like
> > this.  Especially now when we have UAD's (User Defined Attribute):
> >
> > enum foo;
> >
> > @foo bar ();
> 
> Good tip, I used to use structs for this but I wanted something
> non-instantiable.

Good idea! I also don't like using structs everywhere just for UDA's.


T

-- 
MSDOS = MicroSoft's Denial Of Service


More information about the Digitalmars-d mailing list