Luke Palmer <[EMAIL PROTECTED]> wrote: > Leopold Toetsch writes: >> >> The PCC shortcuts in imcc only deal with normal Sub calls (Sub and >> Closure, Coroutines should be ok too). Full Continuations currenty need >> some hints by the programmer. >> >> Do you have an example what do you want to achieve?
> Yep. For instance: > .sub _main > savetop # [1] > newsub $P0, .Continuation, ret > newsub $P1, .Closure, _other_sub > .pcc_begin > .pcc_call $P1, $P0 > ret: > .pcc_end > end > .end > (And we'll assume that I really did need a real continuation here) For cases like this example, you can't use .pcc_begin/end. Do you have a more RL example, which really uses and *needs* this construct? > I'm not sure it's correct to assume that updatecc only applies to > RetContinuations. All other usage of C<updatecc> is wrong :) > Luke leo
