On Mon, Jun 12, 2006 at 03:29:02PM -0700, Ben Pfaff wrote:
     
     It is clearly not right to translate case data into wide strings,
     because they do not necessarily contain character data; they may
     simply be binary octets.

Absolutely.  It's important to distinguish between strings and arrays
of octets.  The only mechanism that converts case data to strings is
data_out() when the format type happens to be A or AHEX.  In fact, it
might be worth typedefing a special symbol for case data, eg

typedef unsigned char case_datum_t;

It'd make it clear when something is not to be considered as a string.     

     > Now if only we'd used C++, then we could simply overload the *
     > operator with a call to mbui_cur, and the *++ operator with
     > mbui_advance ..... 
     
     I'm going to ignore that comment.  It raises too many strong,
     conflicting emotions.

Very wise!

J'

-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.


Attachment: signature.asc
Description: Digital signature

_______________________________________________
pspp-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/pspp-dev

Reply via email to