On 27 May 2013 11:47, Manu <turkeyman@gmail.com> wrote:If it's a string constant, then answer should be yes.... can you pull
> 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.
>
>
gdc head and re-compile to test?
--
Iain Buclaw
*(p < e ? p++ : p) = (c & 0x0f) + '0';