Hi,
I changed the subject.
In message "Re: [RCR] New [] Semantics"
on Tue, 5 Oct 2004 18:19:09 +0900, "trans. (T. Onoma)" <transami / runbox.com> writes:
|I occurs to me that the angry villagers might be confused. The example of the
|never ending
|
| (0..(10.0/0)).member?(4)
|
|comes to mind. Why would this be an infinite loop?
'member?' should have terminated iteration as soon as it find the
value. I will fix.
Range serves as both continuous and discrete interval of values.
'member?' treat it as discrete, whereas 'include?' treat it as
continuous.
matz.