C-binding external array.

ciechowoj via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Aug 10 02:05:13 PDT 2016


On Tuesday, 9 August 2016 at 19:16:42 UTC, Steven Schveighoffer 
wrote:
>
> D has an answer:
>
> pragma(mangle, "tab")
> extern extern(C) int[1] _ctab;
>
> @property int* tab() { return _ctab.ptr; }
>
> I still don't recommend doing this, for previously stated 
> reasons.
>

This is really interesting :).



More information about the Digitalmars-d-learn mailing list