lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]




On Wed, Sep 24, 2014 at 10:07 PM, Andrew Starks <andrew.starks@trms.com> wrote:


On Wednesday, September 24, 2014, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
> Yes, yield is a specific case, just as exceptions are a specific case
> and setjmp/longjmp is a specific case. We'd have to go to something
> like Scheme to get generalized continuations.

Or to Lua with gotos to outside a function ;-)

-- Roberto



I'm possibly exposing my shallow grasp of continuations, but it seems like much of the debug library could be done with this facility.

-Andrew