[#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: UnboundMethod#to_proc

From: "Chris Pine" <nemo@...>
Date: 2003-04-06 16:29:22 UTC
List: ruby-core #932
----- Original Message -----
From: "Yukihiro Matsumoto" <matz@ruby-lang.org>

Orthogonality, I may say.  There's no strong reason behind it, just a
matter of place to put unbound check.  Besides, to tell the truth,
Dave's question made me feel just like you, so that I will add a check
in UnboundMethod#to_proc.
----------------------------

I'm sorry... but I don't understand!  :)

You will add a check?  What will you be checking for?  If the UnboundMethod
was really unbound?  I thought it was always unbound?  (Doesn't #bind return
a Method, rather than an UnboundMethod?)

Chris


In This Thread