Re: Something rotten with the state of continuations...

2004-03-20 Thread Leopold Toetsch
Piers Cawley <[EMAIL PROTECTED]> wrote: Another f'up WRT Continuations. Here is an example how to setup a Continuation: # main.imc .sub _main load_bytecode "set_a.imc" print "main\n" end .end # set_a.imc .sub _set_a @LOAD .local pmc cont print "set_a\n" newsub .Sub,

Re: Something rotten with the state of continuations...

2004-03-20 Thread Leopold Toetsch
Piers Cawley <[EMAIL PROTECTED]> wrote: > I've been trying to implement a Parrot port of xUnit so we can write > tests natively in parrot and things were going reasonably well until I > reached the point where I needed to do exception handling. > Exception handling hurt my head, badly, so eventual

Something rotten with the state of continuations...

2004-03-19 Thread Piers Cawley
I've been trying to implement a Parrot port of xUnit so we can write tests natively in parrot and things were going reasonably well until I reached the point where I needed to do exception handling. Exception handling hurt my head, badly, so eventually I gave up and used a continuation instead. H