On Sat, Nov 19, 2005 at 09:43:21PM -0800, Ben Pfaff wrote:
John Darrington <[EMAIL PROTECTED]> writes:
> Any objections if I change the return type of data_out from void to
> bool, to indicate success/failure ?
By just adding `return ok;' to the end, you mean?
Fine by me.That's what I had in mind, yes. But I've got another proposal now: The gui has an implicit feature where a user (in the variable sheet) changes the type and/or format of a variable which is already populated (has cases in the data sheet). I've been stuffing around with ways of doing this in the gui, but on reflection, none of them are going to be satisfactory. Essentially, if a variable's type changes (eg from string to numeric or numeric to date) then what we have is a transformation, although the user might not think of it as such. Can we therefore add a transformation in the pspp code which converts variables between arbitrary types/formats ? It should do this by applying data_out ; data_in. If either of them fail, then it sets the value to SYSMIS (or "" if the target type is string). 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.
pgp30GsuBuy58.pgp
Description: PGP signature
_______________________________________________ pspp-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/pspp-dev
