Re: array and pointer

2009-03-06 Thread Stewart Gordon
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.

Re: array and pointer

2009-03-05 Thread takeshi
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;

Re: array and pointer

2009-03-05 Thread Derek Parnell
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

Re: array and pointer

2009-03-05 Thread Daniel Keep
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