www.digitalmars.com         C & C++   DMDScript  

D - crash

reply "Sean L. Palmer" <seanpalmer earthlink.net> writes:
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?
Jun 15 2002
parent "Walter" <walter digitalmars.com> writes:
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

 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?

Jun 16 2002