On Tue, May 05, 2009 at 07:51:37PM -0400, Jason Stover wrote:
> interaction_variable_create creates this internal variable. But
> the only place it seems to be used is in interaction_case_data, and
> there, the only use it has is to compare its dict_index
> with that of another variable. For internal variables, the
> dict_index is merely a serial number, so comparing the dict_indexes is
> probably doing nothing more than comparing the variable pointers
> themselves.
I need to compare these internal variables to other variables,
so what is the best way?
To answer that question I have to ask what you mean by "compare" in
this context. In other words what are the `value semantics' for the
comparison.
If you just want to check if a pointer to a variable points to the
same variable as another, then "if (v1 == v2)" will do the job.
But I'm not sure if that's what you want.
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.
signature.asc
Description: Digital signature
_______________________________________________ pspp-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/pspp-dev
