It sounds like your idea is essentially the same as mine. In your approach the predicate function takes more variables, whereas mine relies on static data. Avoiding static data is of course a good thing. The price however would be complicating the user interface of the casereader_get_reader function, since all the variables etc would have to be passed into it. A compromise would be to have a single void *aux parameter, but that too is not without its disadvantages.
J'
On Tue, Sep 26, 2006 at 01:55:44PM +0000, Ben Pfaff wrote:
Follow-up Comment #3, bug #15690 (project pspp):
My thought was simply to write a function that takes a set of variables, a
case, and an enumeration. Depending on the enumerated value specified, it
would return true if any of the variables were missing, or if all of the
variables were missing, or always return false regardless.
This could be combined with your approach: my function is usable as one of
your predicates if done properly.
--
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.
signature.asc
Description: Digital signature
_______________________________________________ pspp-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/pspp-dev
