Changing "target" parameter via attribute

Manu turkeyman at gmail.com
Mon May 27 05:02:16 PDT 2013


On 27 May 2013 21:40, Iain Buclaw <ibuclaw at ubuntu.com> wrote:

> Well it is in...
>
>
> https://github.com/D-Programming-GDC/GDC/commit/15907b95026d451f443b4b6d263c85e0524e517e
>
>
> As for testing:
> ---
> {
>   @attribute("target", T)  void func(string T)() { }
>
>   func!"sse.4.1";
> }
> ---
>
> Error: undefined identifier T.
>
>
> Looks like the frontend rejects this - will find out whether this is a
> bug or intentional...
>

Yep, I saw that coming a mile off! >_<
I can't imagine any good reason why it shouldn't be supported. Just that
nobody ever considered it in the context of UDA's.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20130527/d6eb2f24/attachment.html>


More information about the D.gnu mailing list