Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2022-10

Function references and coroutines

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Hairy Pixels

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

Reply by email