[#3986] Re: Principle of least effort -- another Ruby virtue. — Andrew Hunt <andy@...>

> Principle of Least Effort.

14 messages 2000/07/14

[#4043] What are you using Ruby for? — Dave Thomas <Dave@...>

16 messages 2000/07/16

[#4139] Facilitating Ruby self-propagation with the rig-it autopolymorph application. — Conrad Schneiker <schneik@...>

Hi,

11 messages 2000/07/20

[ruby-talk:04031] Re: Pluggable functions and blocks

From: Dave Thomas <Dave@...>
Date: 2000-07-15 05:41:57 UTC
List: ruby-talk #4031
Morning, Matz:

matz@netlab.co.jp (Yukihiro Matsumoto) writes:

> For example,
> 
>   String.instance_method(:clone).call("a")    #=> cloned string "a"
>   Class.instance_method(:new).call("a")       #=> TypeError

I'm wondering - what is the semantics of this? Is the parameter
substituted for 'self' in the call, or is it an argument to the
constructor of the original class (or something else entirely)? How do 
you differentiate parameters that are to be passed to the method
itself?

Guess it's just late and I'm being particularly dense.


Dave


In This Thread