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

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

17 messages 2003/04/06

Re: Range in logical context

From: matz@... (Yukihiro Matsumoto)
Date: 2003-04-17 05:11:39 UTC
List: ruby-core #970
Hi,

In message "Re: Range in logical context"
    on 03/04/17, nobu.nokada@softhome.net <nobu.nokada@softhome.net> writes:

|* if both sides are them, the range is meaningless.
|    print if true..false		# should be warned always.
|
|* just one side, however, may make sense.
|    print if (/cat/ =~ line)..true	# print lines from "cat" through EOF.
|
|* bare regexps and numerics should be warned, of course.
|    print if /cat/..true		# same as above, but warning.

Agreed.

							matz.

In This Thread

Prev Next