DIP6: Attributes

Yigal Chripun yigal100 at gmail.com
Mon Aug 3 12:16:25 PDT 2009


grauzone Wrote:

> yigal chripun wrote:
> > this is a good start but as already noted by others, you can't specify types with structs. we also can't use type tuples cause of the auto flatten behavior. 
> 
> And why can't we use structs? Unless I've missed something, it wasn't 
> explained in this thread.

how can you pass types as arguments to your annotation if that annotation is a struct? 
for instance, what would be the struct for:
 @my_annotation(int, 4)





More information about the Digitalmars-d mailing list