array and pointer
Daniel Keep
daniel.keep.lists at gmail.com
Thu Mar 5 06:10:00 PST 2009
takeshi wrote:
> Hello, I have just started learning D.
>
> I cannot compile the code in the documentation on array and pointer
> either with dmd (D 2.0) and gdmd (D 1.0).
>
> Is some compile option or cast required?
>
> int* p;
> int[3] s;
> p = s;
If that's the example, then it's out of date. It should be this:
int* p;
int[3] s;
p = s.ptr;
-- Daniel
More information about the Digitalmars-d-learn
mailing list