[#1026] Is this a bug? — Dave Thomas <Dave@...>

18 messages 2000/01/03

[#1084] Infinite loop — Dave Thomas <Dave@...>

17 messages 2000/01/11

[#1104] The value of while... — Dave Thomas <Dave@...>

24 messages 2000/01/11

[ruby-talk:01181] Re: Possible bug in ruby-man-1.4

From: Dave Thomas <Dave@...>
Date: 2000-01-25 06:31:02 UTC
List: ruby-talk #1181
Dave Thomas <Dave@thomases.com> writes:

> So 'tUMINUS Fixnum' will always be reduced to a negative Fixnum. I was 
> suggesting that optimization could be deferred until the tree is
> built, and you know that the Fixnum is a terminal. That way, you'd
> convert the '2' in '1 + -2', but not the '2' in -2.abs.

Ooops. I'm wrong here. The tUMINUS Fixnum reduction only occurs when
it's a terminal node anyway, so it has no impact on the problem. Sorry 
to waste people's time.

Dave  (___)

In This Thread