May 27, 2013 Re: Changing "target" parameter via attribute | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Nadlinger Attachments:
| Not sure what you mean...
Using template specialisation for each attribute permutation or something?
On 27 May 2013 23:20, David Nadlinger <see@klickverbot.at> wrote:
> On Monday, 27 May 2013 at 12:02:28 UTC, Manu wrote:
>
>> On 27 May 2013 21:40, Iain Buclaw <ibuclaw@ubuntu.com> wrote:
>>
>>> 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.
>>
>
> Does it work if you spell out the template and put the attribute on the function? Might be good as a workaround for testing.
>
> David
>
|
May 28, 2013 Re: Changing "target" parameter via attribute | ||||
---|---|---|---|---|
| ||||
Posted in reply to Manu | Am Tue, 28 May 2013 08:37:12 +1000 schrieb Manu <turkeyman@gmail.com>: > Not sure what you mean... > Using template specialisation for each attribute permutation or > something? > > > On 27 May 2013 23:20, David Nadlinger <see@klickverbot.at> wrote: > > > On Monday, 27 May 2013 at 12:02:28 UTC, Manu wrote: > > > >> On 27 May 2013 21:40, Iain Buclaw <ibuclaw@ubuntu.com> wrote: > >> > >>> 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. > >> > > > > Does it work if you spell out the template and put the attribute on the function? Might be good as a workaround for testing. > > > > David > > > http://dpaste.dzfl.pl/5f8f5a7a (But it seems using getAttribute on that template results in an internal error in dmd.) |
May 28, 2013 Re: Changing "target" parameter via attribute | ||||
---|---|---|---|---|
| ||||
Posted in reply to Johannes Pfau Attachments:
| Yeah, I'm sure this case was just never considered, and needs to be
supported.
I had a suspicion it wouldn't work ;)
On 28 May 2013 17:36, Johannes Pfau <nospam@example.com> wrote:
> Am Tue, 28 May 2013 08:37:12 +1000
> schrieb Manu <turkeyman@gmail.com>:
>
> > Not sure what you mean...
> > Using template specialisation for each attribute permutation or
> > something?
> >
> >
> > On 27 May 2013 23:20, David Nadlinger <see@klickverbot.at> wrote:
> >
> > > On Monday, 27 May 2013 at 12:02:28 UTC, Manu wrote:
> > >
> > >> On 27 May 2013 21:40, Iain Buclaw <ibuclaw@ubuntu.com> wrote:
> > >>
> > >>> 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.
> > >>
> > >
> > > Does it work if you spell out the template and put the attribute on the function? Might be good as a workaround for testing.
> > >
> > > David
> > >
> >
>
> http://dpaste.dzfl.pl/5f8f5a7a
>
> (But it seems using getAttribute on that template results in an
> internal error in dmd.)
>
|
Copyright © 1999-2021 by the D Language Foundation