[fpc-pascal] Function references and coroutines

Hairy Pixels genericptr at gmail.com
Sun Oct 30 02:48:14 CET 2022


Since function references are now implemented in the compiler I wonder if this could open the door to implementing coroutines. I remember some years I tried using LongJmp but of course when you jump out of stack frames you would lose their state. Now that function references exist and the state is persisted could you long jump in and out of them safely and maintain the current state?

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list