Delegates with stackpointers

Ritchie ritchie at shark.at
Sat Sep 29 06:01:50 UTC 2018


How does a delegate with a stackpointer work? e.g. in this 
example:

https://run.dlang.io/is/XviMSl

Does the second call to foo not overwrite the stack of the first 
call and thereby the data pointed to by bar1? How is that data 
preserved?


More information about the Digitalmars-d-learn mailing list