digitalmars.D.learn - array and pointer
- takeshi (7/7) Mar 05 2009 Hello, I have just started learning D.
- Daniel Keep (6/16) Mar 05 2009 If that's the example, then it's out of date. It should be this:
- takeshi (2/7) Mar 05 2009
- Derek Parnell (9/19) Mar 05 2009 Try ...
-
Stewart Gordon
(6/9)
Mar 06 2009
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;
Mar 05 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
Mar 05 2009
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;
Mar 05 2009
On Thu, 5 Mar 2009 12:52:14 +0000 (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 ... int* p; int[3] s; p = s.ptr; -- Derek Parnell Melbourne, Australia skype: derek.j.parnell
Mar 05 2009
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).<snip> Known error in the docs. http://d.puremagic.com/issues/show_bug.cgi?id=996 Stewart.
Mar 06 2009