[dmd-beta] rvalue references

Jonathan M Davis jmdavisProg at gmx.com
Fri Apr 13 13:48:25 PDT 2012


On Friday, April 13, 2012 22:18:16 Don Clugston wrote:
> Interestingly, the ref int[3] idiom is documented as working, under
> 'interfacing with C'.
> Anything beyond that seems to be undefined.
> That page seems to document dynamic arrays as _not_ working --
> certainly as having no C equivalent.

Which seems really backwards considering that in both case, you'd be using T* 
in C, and if anything, dynamic arrays are closer to that than static arrays. 
Personally, I'd have expected arr.ptr to be required in both cases.

- Jonathan M Davis


More information about the dmd-beta mailing list