Yukihiro Matsumoto
10/19/2004 4:31:00 PM
Hi,
In message "Re: Proc#dup?"
on Tue, 19 Oct 2004 23:38:21 +0900, Jamis Buck <jgb3@email.byu.edu> writes:
|> No. Both clone and dup should cause error (there should not be any
|> problem since Proc is immutable). Thank you.
|
|Hmmm. That's not the answer I was hoping for, actually. ;)
|
|Here's what I'm trying to do. I want to be able to add new methods to a
|proc's singleton class, but I don't want to modify the object that was
|passed to me. Then, I would like to be able to pass the new block to
|other methods that expect blocks (using the ampersand syntax).
Hmm, singletons. That's good reason to leave clone. Let me consider.
matz.