In message "[ruby-talk:6247] Re: quiz of the week"
on 00/11/10, Mathieu Bouchard <matju / cam.org> writes:
|now try this one!!!
|
| eval '^'
Aaaaaghhhh! This is a bug!
--- parse.y 2000/10/31 08:37:39 1.65
+++ parse.y 2000/11/10 07:14:37
@@ -3282,3 +3282,3 @@
lex_state = EXPR_BEG;
- if (nextc() == '=') {
+ if ((c = nextc()) == '=') {
yylval.id = '^';
@@ -3287,3 +3287,3 @@
pushback(c);
- return c;
+ return '^';