> On Dec 19, 2018, at 6:35 PM, Ryan Joseph <r...@thealchemistguild.com> wrote:
> 
> How does that work? I’ve been interested in coroutines for a while now but I 
> don’t understand how they function in the language. They would need to manage 
> stack states and push/restore stacks, which is something a library can’t do 
> right?

I already discussed this on length a while ago it seems. :)

http://free-pascal-general.1045716.n5.nabble.com/Coroutines-and-VirtualAlloc-td5728274.html

There was no conclusion on how this would be implemented, let alone in a 
library form, but there was an old link which showed an implementation using 
assembly mixed in. I don’t know assembly though so it doesn’t inform me too 
much.

http://www.festra.com/wwwboard/messages/12899.html

Regards,
        Ryan Joseph

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to