"Best" way of passing in a big struct to a function?

thedeemon dlang at thedeemon.com
Wed Oct 10 00:12:05 PDT 2012


On Wednesday, 10 October 2012 at 07:28:55 UTC, Jonathan M Davis 
wrote:
> Making sure that the aa has been properly initialized before 
> passing it to a function (which would mean giving it at least 
> one value) would make the ref completely unnecessary.
>
> - Jonathan M Davis

Ah, thanks a lot! This behavior of a fresh AA being null and then 
silently converted to a non-null when being filled confused me.


More information about the Digitalmars-d-learn mailing list