[#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:04029] Re: Pluggable functions and blocks

From: matz@... (Yukihiro Matsumoto)
Date: 2000-07-15 00:17:26 UTC
List: ruby-talk #4029
Hi,

In message "[ruby-talk:04005] Re: Pluggable functions and blocks"
    on 00/07/14, Aleksi Niemel<aleksi.niemela@cinnober.com> writes:

|Unbounded methods would require changes to the Ruby core, right?

Yes.  But,... wait a minute, I've got an idea. ... done.
Well, I just implemented unbound method right now. It seems to work fine.

For example,

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

It's just an experimental code, I'm not decided that it will be
included in 1.6 yet.

							matz.

In This Thread