On Thursday 20 May 2004 17:40, Dan Sugalski wrote:$I0 = 1 if $P0, done $I0 = 0 done:I see a similar problem with the isnull op:
getattribute $P0, ... isnull $P0, INIT branch DONE INIT: $P0 = new .Foo setattribute ..., $P0 DONE:
which can be written shorter with a "notnull" op:
getattribute $P0, ... notnull $P0, OK $P0 = new .Foo setattribute ..., $P0 OK:
Its IMO easier to understand the latter code.
isnull probably ought to get turned into a non-branching op to match the other is<foo> ops I added. The current isnull could get renamed to ifnull (with a corresponding unlessnull, I expect)
--
Dan
--------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk