[squeak-dev] Struct with doubles

Schwab,Wilhelm K bschwab at anest.ufl.edu
Thu May 27 22:28:42 UTC 2010


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





More information about the Squeak-dev mailing list