CTFE Status 2
Stefan Koch via Digitalmars-d
digitalmars-d at puremagic.com
Fri Apr 28 01:47:43 PDT 2017
On Thursday, 16 February 2017 at 21:05:51 UTC, Stefan Koch wrote:
> [ ... ]
After a little of exploration of the JIT, I have now determined
that a simple risc architecture is still the best.
(codegen for scaled loads is hard :p)
I am now back to fixing non-compiling code,
such as :
struct S
{
uint[] slice;
}
uint fn()
{
S s;
s.slice.length = 12;
return cast(uint)s.slice.length;
}
static assert(fn() == 12);
This simple test does not compile because;
ahm well ...
Somewhere along the road we loose the type of s.slice and we
cannot tell where to get .length from.
More information about the Digitalmars-d
mailing list