From: "Hal E. Fulton" Date: 2003-05-04T15:44:50+09:00 Subject: Re: GC.garbage_collect ----- Original Message ----- From: "Yukihiro Matsumoto" To: "ruby-talk ML" Sent: Sunday, May 04, 2003 1:32 AM Subject: Re: GC.garbage_collect > Hi, > > In message "GC.garbage_collect" > on 03/05/04, Bret Jolly writes: > > |I notice that in Ruby 1.8 preview2, GC.start no longer > |has the alias GC.garbage_collect (described on page 414 > |of the pickaxe book). > > % ri garbage_collect > The method named `garbage_collect' is not unique among Ruby's classes > and modules: > GC#garbage_collect, ObjectSpace::garbage_collect > % ri GC#garbage_collect > ----------------------------------------------------- GC#garbage_collect > garbage_collect -> nil > ------------------------------------------------------------------------ > Equivalent to GC::start. > include GC > garbage_collect #=> nil > > See? As for me, I still had to visit the docs before I fully understood. It's a little unusual that two equivalent methods should be defined at different levels. Usually both are instance level or both class/module level. I *think* that was what confused Bret. Hal