[#927] UnboundMethod#to_proc — Dave Thomas <dave@...>
I'm wondering what I can do with a Proc generated by
17 messages
2003/04/06
[#929] Re: UnboundMethod#to_proc
— "Chris Pine" <nemo@...>
2003/04/06
----- Original Message -----
[#934] Re: UnboundMethod#to_proc
— Mathieu Bouchard <matju@...>
2003/04/06
[#940] Re: UnboundMethod#to_proc
— chr_news@...
2003/04/07
>
[#941] Re: UnboundMethod#to_proc
— Dave Thomas <dave@...>
2003/04/07
>> If they have diverging interfaces such that the contracts conflict
[#936] docs on implementation of ruby and/or ruby-gc ? — Ruben Vandeginste <Ruben.Vandeginste@...>
4 messages
2003/04/07
[#964] Range in logical context — Dave Thomas <dave@...>
If I run
7 messages
2003/04/16
[#965] Re: Range in logical context
— Mauricio Fern疣dez <batsman.geo@...>
2003/04/16
On Thu, Apr 17, 2003 at 06:10:40AM +0900, Dave Thomas wrote:
[#973] problem with rb_rescue2() ? — Mathieu Bouchard <matju@...>
5 messages
2003/04/19
Re: Range in logical context
From:
Mauricio Fern疣dez <batsman.geo@...>
Date:
2003-04-16 21:46:05 UTC
List:
ruby-core #965
On Thu, Apr 17, 2003 at 06:10:40AM +0900, Dave Thomas wrote:
> 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?
I guess so.
[ruby-talk:62641]
|> * discourage use of symbol variables (e.g. $/, etc.) in manual
|> * discourage use of Perlish features by giving warnings.
|
|hm, i wonder what is the list of features that the author (matz?) decide
|as perlish and should be discouraged.
* symbol variables
* regexp in conditional expression
* range (../...) in conditonal expression
matz.
--
_ _
| |__ __ _| |_ ___ _ __ ___ __ _ _ __
| '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \
| |_) | (_| | |_\__ \ | | | | | (_| | | | |
|_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|
Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com
We come to bury DOS, not to praise it.
-- Paul Vojta, vojta@math.berkeley.edu