[MacRuby] #626: macruby fails Class.class_eval in macruby but not in 1.8 & 1.9?
#626: macruby fails Class.class_eval in macruby but not in 1.8 & 1.9? ------------------------------------+--------------------------------------- Reporter: rebotfc@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- Macruby fails executing the below, but it works fine in ruby 1.8 and ruby 1.9, any ideas why? module Macro def foofoo puts "barbar" end end Class.class_eval do include Macro end Array.foofoo class_eval_test.rb:7:in `<main>': undefined method `foofoo' for NSMutableArray:Class (NoMethodError) -- Ticket URL: <http://www.macruby.org/trac/ticket/626> MacRuby <http://macruby.org/>
#626: macruby fails Class.class_eval in macruby but not in 1.8 & 1.9? ------------------------------------+--------------------------------------- Reporter: rebotfc@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- Description changed by martinlagardette@…: Old description:
Macruby fails executing the below, but it works fine in ruby 1.8 and ruby 1.9, any ideas why?
module Macro def foofoo puts "barbar" end end
Class.class_eval do include Macro end
Array.foofoo class_eval_test.rb:7:in `<main>': undefined method `foofoo' for NSMutableArray:Class (NoMethodError)
New description: Macruby fails executing the below, but it works fine in ruby 1.8 and ruby 1.9, any ideas why? {{{ #!ruby module Macro def foofoo puts "barbar" end end Class.class_eval do include Macro end Array.foofoo }}} {{{ class_eval_test.rb:7:in `<main>': undefined method `foofoo' for NSMutableArray:Class (NoMethodError) }}} -- -- Ticket URL: <http://www.macruby.org/trac/ticket/626#comment:2> MacRuby <http://macruby.org/>
#626: macruby fails Class.class_eval in macruby but not in 1.8 & 1.9? ------------------------------------+--------------------------------------- Reporter: rebotfc@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- Comment(by james@…): This looks like it may be a duplicate or at least closely related to #562. -- Ticket URL: <http://www.macruby.org/trac/ticket/626#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby