Inlining problems again

Daniel Murphy yebbliesnospam at gmail.com
Sat Apr 5 09:51:28 PDT 2014


"Johannes Pfau"  wrote in message news:lhp8h4$2j38$1 at digitalmars.com...

> But we'd want this to work/inline nevertheless, right?:
> ------------
> void test(const(char)[] a)
> {
> }
>
> char[] abc;
> test(abc);
> ------------
>
> Then we still need to tell GCC that const(char)[] is a variant of
> char[] or it won't inline.

Can you just strip all const/immutable/etc when the type is passed to the 
backend? 



More information about the D.gnu mailing list