ABI array format
Walter Bright
newshound1 at digitalmars.com
Wed Dec 19 23:33:11 PST 2007
Janice Caron wrote:
> On 12/20/07, Walter Bright <newshound1 at digitalmars.com> wrote:
>> I recommend treating array contents as an opaque type, and call the C
>> functions using array.ptr and array.length. That way, you'll be insured
>> against implementation changes.
>
> Obviously, I agree with that. But...
>
> I recommend changing the documentation on
> http://www.digitalmars.com/d/abi.html, which states in black and white
> not only that the layout is not opaque, but tells you what's inside
> it. Folk can hardly be blamed for relying on that.
ABIs are for things like link compatibility between implementations.
More information about the Digitalmars-d
mailing list