> -----Original Message-----
> From: Jonas Pfenniger [mailto:zimbatm / oree.ch] 
> Sent: Monday, October 08, 2007 7:28 AM
> To: ruby-core / ruby-lang.org
> Subject: Re: Why does def return nil?
> 
> 
> 2007/10/5, David Flanagan <david / davidflanagan.com>:
> > Since class returns the value of the last expression, 
> changing def to 
> > return a Symbol or UnboundMethod object would end up affecting the 
> > return value of most class definitions as well, since most consist 
> > have a def as their last expression.
> 
> Another argument against using Symbols is that you will grow 
> the symbol hash table, even if you only use a fraction of 
> them. Since that table can't be garbage-collected, it can be 
> quite problematic.

<snip>

I suppose it might also mean refactoring undef_method and remove_method.

Regards,

Dan


This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly 
prohibited and may be unlawful.  If you have received this communication n error, please immediately notify the sender by reply e-mail and destroy 
all copies of the communication and any attachments.