From: Markus Date: 2004-10-02T00:16:57+09:00 Subject: Re: Range syntax theory On Fri, 2004-10-01 at 06:16, trans. (T. Onoma) wrote: > On Friday 01 October 2004 09:02 am, Michael Gaunnac wrote: > > I don't know about potential parsing problems (or ugliness), but what > > about: > > > > > > 0..5 inclusive > > 0..<5 exclusive > > Ha! > > 0><5 > 0><=5 > 0=><=5 Thank you! In my free time (ha!) I'm working on a patch to 1.8.2 to allow these sorts of operators (see http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/111627, towards the end, and follow ups). If I get it working, I'll try to implement this as an example. -- Markus P.S. My patch sort of works at present; bringing together a half dozen threads on this list it'd call it alpheta, where: alpheta = Proc.new(:===) { |s| (alpha...beta).member? s }