Re: Well I did it! (variable_id, etc..)

new topic     » goto parent     » topic index » view thread      » older message » newer message

> Makes goto look easy, eh?

I hate to cave in, but yes. Simply inserting this, amongst a few
others, *could* cause goto to work. However, It would kinda screw with
the logic flow of the interprerter, which is why I believe Rob has
avoided it for so long. It's just plain messy, and that's now what he
wants for the language.


-- GTH
procedure opGOTO()
    -- set next instruction to our 'jump' label
    integer jump
    jump = Code[pc+1]
    pc = jump  -- usually this is pc+2 for the next inline instruction
end procedure


new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu