Thank you ventilator for your input ! I will look into coroutines - they could be the key ^^
your approach to simulating pointers is also quite interesting ! the c# wrapper is able to get a pointer of a local variable but not of arbitrary expressions - lambda may be worth a look ^^.