Struct with doubles

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Struct with doubles

Schwab,Wilhelm K
Hello all,

I am faced with some win32 software that uses a structure like

struct gizmo {
  double x; y; z;
  double q[4];
}

Would it be legal to treat that as

struct gizmo {
  double x; y; z;
  double q0; q1; q2; q3;
}

and then let Pharo define the fields?  This is running on 32 bit winxp.  A colleague is doing 3D magic with the resulting numbers, but Weird things appear to be happening.  I am looking for ways that I might be causing them.  It is also possible that the gizmo to which we are interfacing is just plain broken.

Bill



_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project