[#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: [patch] fileutils.rb - bug in 'rm_r'
From:
matz@... (Yukihiro Matsumoto)
Date:
2003-04-15 09:10:04 UTC
List:
ruby-core #962
Hi,
In message "[patch] fileutils.rb - bug in 'rm_r'"
on 03/04/14, Johan Holmberg <holmberg@iar.se> writes:
|I believe there is a bug in the "FileUtils.rm_r" method.
|The error I get if I do
|
| $ ruby -rfileutils -e 'FileUtils.rm_r "non-existing"'
| /home/holmberg/local/lib/ruby/1.8/fileutils.rb:506:in `rm_r': \
| undefined method `symlink?' for nil (NoMethodError)
| ...
|
|seem wrong. Such an error (NoMethodError) should problably not be
|seen by the user of the module. With the patch supplied below the
|error is changed to
|
| $ ruby -I ~ -rfileutils -e 'FileUtils.rm_r "non-existing"'
| /home/holmberg/fileutils.rb:520:in `lstat': \
| No such file or directory - "non-existing" (Errno::ENOENT)
| ...
|
|which is closer to the actual cause of the error (that the file
|doesn't exist).
Thank you. I will merge your fix.
matz.