[#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: stringy range bug

From: "Christoph" <chr_news@...>
Date: 2003-10-15 15:50:23 UTC
List: ruby-core #1636
ts wrote:
...

> C> (A..B)   # raises an argument error
> 
>  Well, the problem here is that
> 
> svg% ruby -e 'p Array <=> Hash'
> nil
> svg% 

Hi,

I know - actually I try to point out that one doesn't need to
rule out things like Array,Hash as Range boundaries. The 
straight forward interpretation is 

(Array..Hash).to_a == []   - which seems no weirder than
the already allowed (Object..Hash).to_a  == [] formation.

I was sort of suggesting  to also consider the ``least 
common successor solution''

(Array..Hash).to_a == [Array,Object]

which is clearly cooler but probably has the chance of a
snowball in hell to pass Matz's (or anybody else's but
mine) taste test.

> p.s. : apparently the gateway news ===> ruby-talk is broken

This breakages apparently didn't break my gateway
 ruby-talk or news ===>  email harvester  ===> spam server
On the plus side, if I ever feel the need for phallic improvement,
I surely won't  ran out of suggestions:-)



/Christoph

In This Thread