June 15, 2002 crash | ||||
---|---|---|---|---|
| ||||
I've narrowed it down further alias float[2] vector2; typedef vector2 point2; // if I change this typedef to alias it works fine float distance(point2 a, point2 b) { point2 d; d[0] = b[0] - a[0]; // if I comment out this line it won't crash return 0.0f; } Wierd eh? |
June 16, 2002 Re: crash | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean L. Palmer | Thanks for posting this, I'll have a look at it. -Walter "Sean L. Palmer" <seanpalmer@earthlink.net> wrote in message news:aegidr$ts4$1@digitaldaemon.com... > I've narrowed it down further > > alias float[2] vector2; > typedef vector2 point2; // if I change this typedef to alias it works fine > > float distance(point2 a, point2 b) > { > point2 d; > d[0] = b[0] - a[0]; // if I comment out this line it won't crash > return 0.0f; > } > > Wierd eh? > > |
Copyright © 1999-2021 by the D Language Foundation