<p>Am 19.04.2017 06:35 schrieb "Ryan Joseph" <<a href="mailto:ryan@thealchemistguild.com">ryan@thealchemistguild.com</a>>:<br>
><br>
><br>
> > On Apr 19, 2017, at 2:34 AM, Daniel Gaspary <<a href="mailto:dgaspary@gmail.com">dgaspary@gmail.com</a>> wrote:<br>
> ><br>
> > UsingĀ SetJmp and LongJmp?<br>
> ><br>
> > I believe some months ago it was a discussion on the list on why this<br>
> > was not really the way to implement coroutines.<br>
> ><br>
> > Searching for longjmp/setjmp you can find the thread, I guess.<br>
><br>
> I never heard of those functions and I did find a thread about them but it seemed inconslusive.</p>
<p>Those functions simply store (setjmp) and restore (longjmp) register values (and setjmp also returns the value passed to longjmp if it had been reached by a longjmp). Nothing more, nothing less. So while the stack register while be changed, the contents on the stack will not.</p>
<p>Regards,<br>
Sven</p>