[#688] mkmf.rb - add files to clean and distclean targets — Michal Rokos <michal@...>

Hi,

25 messages 2003/01/15
[#722] Re: [RFC] mkmf.rb - add files to clean and distclean targets — Mathieu Bouchard <matju@...> 2003/01/20

On Thu, 16 Jan 2003, Michal Rokos wrote:

[#740] Re: [RFC] mkmf.rb - add files to clean and distclean targets — matz@... (Yukihiro Matsumoto) 2003/01/21

Hi,

[#724] Symbols: More Functionality Wanted — Ryan Pavlik <rpav@...>

I've been discussing this for a bit on #ruby-lang on OPN (or freenode or

23 messages 2003/01/20
[#728] Re: Symbols: More Functionality Wanted — matz@... (Yukihiro Matsumoto) 2003/01/20

Hi,

[#743] Re: Symbols: More Functionality Wanted — "Pit Capitain" <pit@...> 2003/01/21

On 20 Jan 2003 at 15:49, Yukihiro Matsumoto wrote:

[#767] Re: Symbols: More Functionality Wanted — Mathieu Bouchard <matju@...> 2003/01/22

[#768] Re: Symbols: More Functionality Wanted — dblack@... 2003/01/22

Hi --

[#779] Re: Symbols: More Functionality Wanted — Gavin Sinclair <gsinclair@...> 2003/01/23

On Thursday, January 23, 2003, 6:28:04 AM, dblack wrote:

Re: Comments on matrix.rb

From: Michael Granger <ged@...>
Date: 2003-01-20 14:52:10 UTC
List: ruby-core #733
Gavin Sinclair (in "Comments on matrix.rb") wrote:

> Matrix:
>  - initialize should be protected/private

It already is:

  irb(main):001:0> m = Matrix[[1,0,0], [0,1,0], [0,0,1]]
    ==> Matrix[[1, 0, 0], [0, 1, 0], [0, 0, 1]]

  irb(main):002:0> m.initialize
  NoMethodError: private method `initialize' called for 
    #<Matrix:0x40402a88> from (irb):2

I believe the 'initialize' method of any class is private by default:

  irb(main):003:0> class Foo
  irb(main):004:1>   def initialize
  irb(main):005:2>   end
  irb(main):006:1> end
    ==> nil

  irb(main):007:0> f = Foo::new
    ==> #<Foo:0x403f9e9c>

  irb(main):008:0> f.initialize
  NoMethodError: private method `initialize' called for 
    #<Foo:0x403f9e9c> from (irb):8


-- 
Michael Granger <ged@FaerieMUD.org>
Rubymage, Believer, Architect
The FaerieMUD Consortium <http://www.FaerieMUD.org/>


In This Thread