[#1579] arity bug? — "Christoph" <chr_news@...>
Hi,
5 messages
2003/10/05
[#1588] FreeBSD problem with processes — Laurent Sansonetti <pinux@...>
Hi all,
1 message
2003/10/07
[#1591] Re: Yielding to a block from a proc? — george.marrows@...
> > Is this right? Is this pathological? Is it a bug? Is there
6 messages
2003/10/08
[#1596] PATCH: Revive NextStep, OpenStep, Rhapsody ports — Eric Sunshine <sunshine@...>
Hello,
7 messages
2003/10/09
[#1597] Re: PATCH: Revive NextStep, OpenStep, Rhapsody ports
— matz@... (Yukihiro Matsumoto)
2003/10/09
Hi,
[#1600] CVS access — Sean Russell <ser@...>
Hiya,
8 messages
2003/10/09
[#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
[#1612] Re: set_trace_func/Array#fetch error
— ts <decoux@...>
2003/10/11
>>>>> "N" == Nathaniel Talbott <nathaniel@talbott.ws> writes:
[#1616] Re: set_trace_func/Array#fetch error
— "Nathaniel Talbott" <nathaniel@...>
2003/10/11
ts [mailto:decoux@moulon.inra.fr] wrote:
[#1617] Re: set_trace_func/Array#fetch error
— ts <decoux@...>
2003/10/11
>>>>> "N" == Nathaniel Talbott <nathaniel@talbott.ws> writes:
[#1618] Re: set_trace_func/Array#fetch error
— "Nathaniel Talbott" <nathaniel@...>
2003/10/11
ts [mailto:decoux@moulon.inra.fr] wrote:
[#1634] stringy range bug — "Christoph" <chr_news@...>
Hi,
6 messages
2003/10/15
[#1640] SystemStackError in embedding — Sentinel <sentinel27@...>
Hi, I am just now trying to embed ruby into my apprication
8 messages
2003/10/18
stringy range bug
From:
"Christoph" <chr_news@...>
Date:
2003-10-15 09:10:14 UTC
List:
ruby-core #1634
Hi,
currently there is a bug in open ranges with
identical boundaries strings.
---
p ("a"..."a").to_a # ["a"]
---
I also have a back log of old Range questions.
Shouldn't a failure like
---
class Class
alias succ superclass
end
class A
end
(A..Object).each {} # raises ... `<=>' for nil:NilClass (NoMethodError)
---
be fixed? (the patch should be straight forward)
- and why isn't it possible to form ranges with incomparable
boundaries - this would make ranges more usefull
when iterating in trees - example
--
class Class
alias succ superclass
end
class A
end
class B
end
(A..B) # raises an argument error
---
rather than raising an error we could iterate up to the
``least common successor'' - in our example this would
be Object?
/Christoph
Attachments (1)
string.diff
(513 Bytes, text/x-diff)
--- string.c.1.176 2003-10-15 10:09:59.382163200 +0200
+++ string.c 2003-10-15 10:09:25.347153600 +0200
@@ -1174,9 +1174,12 @@
{
VALUE current, after_end;
ID succ = rb_intern("succ");
+ int limits_cmp;
StringValue(end);
- if (rb_str_cmp(beg, end) > 0) return beg;
+ limits_cmp = rb_str_cmp(beg, end);
+
+ if ((limits_cmp > 0) || (excl && limits_cmp == 0)) return beg;
after_end = rb_funcall(end, succ, 0, 0);
current = beg;
while (!rb_str_equal(current, after_end)) {