UDA: getAttributes does not play well with topleof

d coder dlang.coder at gmail.com
Mon Dec 17 06:44:18 PST 2012


> Try something like this:
>
> foreach (i, dummy; foo.tupleof)
> {
>     alias Tuple!(__traits(getAttributes, foo.tupleof[i])) tp;
>     pragma(msg, tp);
> }
>
>
Ok so that is because ref does not work with foreach on tuples. Somehow I
thought that got fixed.
Anyways, with your suggestion I get a strange error.

Error: first argument is not a symbol
tuple(false)

Regards
- Puneet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20121217/d4768396/attachment.html>


More information about the Digitalmars-d mailing list