This is the mail archive of the
mailing list for the Archer project.
Re: [python] Address FIXME in valpy_richcompare.
- From: Tom Tromey <tromey at redhat dot com>
- To: Thiago Jung Bauermann <bauerman at br dot ibm dot com>
- Cc: archer ml <archer at sourceware dot org>
- Date: Mon, 24 Nov 2008 15:46:08 -0700
- Subject: Re: [python] Address FIXME in valpy_richcompare.
- References: <firstname.lastname@example.org>
- Reply-to: Tom Tromey <tromey at redhat dot com>
>>>>> "Thiago" == Thiago Jung Bauermann <email@example.com> writes:
Thiago> I'm not sure I understood the part of the FIXME about string
Thiago> compares. Could you expand, Tromey?
I think the question is: what should we do if a Value represents a
I think we don't have enough information to determine that a Value is
a string, though.
We can just remove the FIXME if we think that the current operation is
ok. String-representing Values will ordinarily be pointers (or decay
to pointers); doing pointer comparison is not unreasonable. In fact
if we had automatic coercion it would seem to be hard to do that --
you'd have to convert the pointer value to an integer type.