[Prev][Next][Index]
Re: inconsistency in overloaded operator identifiers
- From: "Beata Winnicka" <bfatyga@spasm.cica.indiana.edu>
- Date: Fri, 7 Oct 94 15:30:55 -0500
- To: aba@atlas.ex.ac.uk
- Subject: Re: inconsistency in overloaded operator identifiers
- Cc: sage-bugs@cica.indiana.edu
>but
>
>operator~() returns "operator~"
>
>This is probably an oversight from when operator~() was added.
That's a bug. In order to fix it, make the following changes
in pC++2dep/vlex.c
diff -r1.30 vlex.c
479c479
< #define isanop(d) ((d == '+') || (d == '-') || (d == '&') || (d == '|') || (d == '<') || (d == '>') || (d == '*') || (d == '/') || (d ==
'%') || (d == '^') || (d == '!') || (d == '=') )
---
> #define isanop(d) ((d == '+') || (d == '-') || (d == '&') || (d == '|') || (d == '<') || (d == '>') || (d == '*') || (d == '/') || (d ==
'%') || (d == '^') || (d == '!') || (d == '=') || (d == '~'))
764c764
< while (isalnum(c) || (c == '_') || (c == '~'))
---
> while (isalnum(c) || (c == '_') /* || (c == '~') */)
1177a1178
> case '~':
The line numbers should agree with those in version 1.7. --Beata