lua-users home
lua-l archive

Re: lua_resume and a C-function as the main coroutine function problem

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


On 2010年4月14日, Florian Weimer wrote:
> * Tony Finch:
>
> > You can manipulate the stack pointer in C without mucking around inside
> > the guts of a jmp_buf using alloca() or C99 variable size arrays. There
> > are some toy example coroutine implementations using this idea at
> > http://dotat.at/cgi/git?p=picoro.git;a=heads
>
> It's still undefied behavior.
Of course. So is guddling around inside a jmp_buf, or using assembler.
Tony.
-- 
f.anthony.n.finch <dot@dotat.at> http://dotat.at/
GERMAN BIGHT HUMBER: SOUTHWEST 5 TO 7. MODERATE OR ROUGH. SQUALLY SHOWERS.
MODERATE OR GOOD.

AltStyle によって変換されたページ (->オリジナル) /