Changing "target" parameter via attribute

Iain Buclaw ibuclaw at ubuntu.com
Mon May 27 04:08:06 PDT 2013


On 27 May 2013 11:47, Manu <turkeyman at gmail.com> wrote:
> By 'it', you mean supporting @target? Or handling specific targets +
> mangling?
>
> I still need to be able to do something like '@attribute("target", T) void
> func(string T)()', or maybe '@target(T) void func(string T)()' one way or
> another. The template argument would be responsible for the appropriate
> mangling in this case.
> The reason is to be compatible with the DMD/LDC solutions, which would also
> use template selection.f
>
> The part I don't know is if T, a template argument to the function, can be
> used in the attribute declaration? This is critical.
>
>

If it's a string constant, then answer should be yes.... can you pull
gdc head and re-compile to test?

--
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


More information about the D.gnu mailing list