C-binding external array.

Steven Schveighoffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Aug 9 08:53:44 PDT 2016


On 8/9/16 11:41 AM, Steven Schveighoffer wrote:

> extern(C) int tabLength(); // mythical mechanism or no?
>
> @property int[] dtab { return tab.ptr[0 .. tabLength]; }

And I've used mythical syntax also! Should be:

@property int[] dtab() { return tab.ptr[0 .. tabLength]; }

-Steve



More information about the Digitalmars-d-learn mailing list