waneck / haxe-genc

20 stars 2 forks source link

Optional struct args. #28

Closed deltaluca closed 10 years ago

deltaluca commented 10 years ago

I don't know if we're supposed to support them yet, but the following fails:

var x:{?y:Int} = {y:20};
trace(x.y); // segfault
x = {};
trace(x.y); // segfault too.
Simn commented 10 years ago

The second trace still segfaults because we cannot trace null at the moment.

deltaluca commented 10 years ago

You say that, but I have managed to get (null) to trace out before :) Probably for another reason of trace not being properly implemented yet, maybe it was printing NULL through %s and that gives (null)