takeshi wrote:
Hello, I have just started learning D.
Welcome.
I cannot compile the code in the documentation on array and pointer
either with dmd (D 2.0) and gdmd (D 1.0).
Known error in the docs.
http://d.puremagic.com/issues/show_bug.cgi?id=996
Stewart.
Hello Daniel,
Thank you. It works.
> If that's the example, then it's out of date. It should be this:
>
> int* p;
> int[3] s;
> p = s.ptr;
On Thu, 5 Mar 2009 12:52:14 + (UTC), 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;
Try
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 dat