Inlining problems again

Johannes Pfau nospam at example.com
Sat Apr 5 08:44:58 PDT 2014


Am Sat, 5 Apr 2014 15:31:30 +0100
schrieb Iain Buclaw <ibuclaw at gdcproject.org>:

> 
> I've had another thought for a while now that involves not
> constifying 'in' parameters, but at the same time not loosing its
> guarantee.
> 

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.


More information about the D.gnu mailing list