[MacRuby-devel] Warnings about removing methods

Eloy Duran eloy.de.enige at gmail.com
Mon Jan 5 03:18:00 PST 2009


Hi,

Is there a good reason why MacRuby would need to warn the user about  
the hazzards of removing methods?
Removing methods is always a risky business, also in pure Ruby. But  
this is the power that a Ruby user gets and with it comes  
responsibility.
And since Ruby doesn't warn for this, MacRuby shouldn't do so either  
IMO.

Example:
/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/ 
site_ruby/mocha/class_method.rb:50: warning: removing pure Objective-C  
method `__stubba__require__stubba__' may cause serious problem

Eloy


More information about the MacRuby-devel mailing list