[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dict_var_resized
From: |
John Darrington |
Subject: |
Re: dict_var_resized |
Date: |
Wed, 6 May 2009 08:54:00 +0800 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
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
- dict_var_resized, Jason Stover, 2009/05/01
- Re: dict_var_resized, John Darrington, 2009/05/01
- Re: dict_var_resized, Ben Pfaff, 2009/05/01
- Re: dict_var_resized, John Darrington, 2009/05/03
- Re: dict_var_resized, Jason Stover, 2009/05/04
- Re: dict_var_resized, John Darrington, 2009/05/04
- Re: dict_var_resized, Jason Stover, 2009/05/05
- Re: dict_var_resized,
John Darrington <=
- Re: dict_var_resized, Jason Stover, 2009/05/06
- Re: dict_var_resized, John Darrington, 2009/05/07