Communication between D and C with dynamic arrays
ketmar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Aug 10 08:34:20 PDT 2014
On Sun, 10 Aug 2014 15:24:29 +0000
seany via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com> wrote:
> Thank you, so the running out of space problem is taken care of
> automatically?
from D side -- yes. just don't store passed pointer on C side, 'cause
it can be changed on array resize.
but if you want to be able to resize the array from C side, than this is
completely different story. D has it's own memory maganer, so you can't
easily use malloc() and company from libc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20140810/b97a3cb9/attachment.sig>
More information about the Digitalmars-d-learn
mailing list