On Mon, Jul 11, 2005 at 01:39:08PM +0200, Leopold Toetsch wrote: > I can see two ways to go: > > a) e = interpinfo .INTERPINFO_EXCEPTION > > b) via the get_params opcode > > The latter would reflect the exception call being an internal > continuation invocation: > > push_eh handler > # throw > handler: # handler: > get_params "(0)", e # .param pmc e > > (Except that .param isn't allowed in arbitrary position currently)
If arbitary-position .param for inner subroutines can be made to work, b) is by far more straightforward. This also plays well P6's notion that all non-local exits, including return(), are conceptually exceptions, so it makes sense to use the same pairs of calling convention opcodes. Thanks, /Autrijus/
pgpojwPM2fUDB.pgp
Description: PGP signature