cast ref pointer

Luís Marques luis at luismarques.eu
Thu Jan 18 16:26:54 UTC 2018


On Thursday, 18 January 2018 at 16:20:35 UTC, Steven 
Schveighoffer wrote:
> Note, this, to me, seems odd. Of course this is not the full 
> case, but you are not affecting anything except for the value 
> of the local `ptr`. So I would be concerned this may not be 
> what you want (if you are looking to affect something outside 
> the callback).

Yeah, I went overboard in reducing my scenario :( The actual 
function bar also receives by ref its pointer.


More information about the Digitalmars-d-learn mailing list