On Friday, 28 April 2017 at 08:47:43 UTC, Stefan Koch wrote:
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.

I fixed this just now!
ABI's are hard :)

Reply via email to