[Prev][Next][Index]
inconsistency in overloaded operator identifiers
- From: aba@atlas.ex.ac.uk
- Date: Wed, 5 Oct 94 09:33:41 +0100
- To: sage-bugs@cica.indiana.edu
- Subject: inconsistency in overloaded operator identifiers
the name identifier returned for overloaded operators by
{
SgFunction* function_symbol;
char* function_name = function_symbol->identifier()
}
is the operator name only for all operators except operator~(), the
complement operator.
ie.
operator+() returns "+"
operator-() returns "-"
operator!() returns "!"
etc.,
but
operator~() returns "operator~"
This is probably an oversight from when operator~() was added.
I noticed this because I use the function name to determine if the
function is an overloaded operator and it was failing for ~.
Adam
_______________________________________________________________
email:aba@dcs.exeter.ac.uk http://dcs.exeter.ac.uk/~aba/