Passing ref T[n] to C

Mike Parker aldacron at gmail.com
Mon Dec 9 09:17:02 PST 2013


On Monday, 9 December 2013 at 16:11:39 UTC, Jakob Ovrum wrote:
> Upon consulting the specification[1], it looks like it's 
> officially recommended to use `ref T[n]` for C's `T[n]`, and 
> `T*` for C's `T[]`, in parameter lists.
>
> [1] http://dlang.org/interfaceToC.html, "Passing D Array 
> Arguments to C Functions"

Thanks. I completely missed that.


More information about the Digitalmars-d-learn mailing list