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.

jens

Reply via email to