[#927] UnboundMethod#to_proc — Dave Thomas <dave@...>

I'm wondering what I can do with a Proc generated by

17 messages 2003/04/06

Range in logical context

From: Dave Thomas <dave@...>
Date: 2003-04-16 21:10:40 UTC
List: ruby-core #964
If I run

   while line = gets
     puts(line) if line =~ /cat/ .. line =~ /dog/
   end

with ruby -w, I get:

   t.rb:2: warning: range literal in condition

Does this mean I should deprecate the use of ranges in conditions?


Cheers


Dave 


In This Thread

Prev Next