[#1611] set_trace_func/Array#fetch error — "Nathaniel Talbott" <nathaniel@...>

I've reduced the error I reported in ruby-talk:84013 to the following code:

17 messages 2003/10/11

Re: inconsistency with lexing number bases

From: Ryan Davis <ryand-ruby@...>
Date: 2003-10-15 04:31:04 UTC
List: ruby-core #1632
um... smoking crack. I think we were mixing up our interpreters between 
1.6.7 and 1.8. Sorry.

On Tuesday, October 14, 2003, at 09:24 PM, Ryan Davis wrote:

> Why is:
>
> 	0b0
> 	0x0
> 	0o0
>
> allowed, but not:
>
> 	0d0
> ?
>
> I think I'd like to propose that 0d0 is allowed and I'd think that the 
> patch (ignoring indentation) should be:
>
> <558> diff -bu parse.y parse.y.new
> --- parse.y	Tue Jul 29 23:38:32 2003
> +++ parse.y.new	Tue Oct 14 21:09:40 2003
> @@ -3765,7 +3765,6 @@
>  		if (c == 'd' || c == 'D') {
>  		    /* decimal */
>  		    c = nextc();
> -		    if (ISDIGIT(c)) {
>  			do {
>  			    if (c == '_') {
>  				if (nondigit) break;
> @@ -3776,7 +3775,6 @@
>  			    nondigit = 0;
>  			    tokadd(c);
>  			} while ((c = nextc()) != -1);
> -		    }
>  		    pushback(c);
>  		    tokfix();
>  		    if (toklen() == start) {
>
>


In This Thread