Projects

Ticket #626 (new defect)

Opened 7 months ago

Last modified 4 months ago

macruby fails Class.class_eval in macruby but not in 1.8 & 1.9?

Reported by: rebotfc@… Owned by: lsansonetti@…
Priority: blocker Milestone:
Component: MacRuby Keywords:
Cc: ernest.prabhakar@…, james@…

Description (last modified by martinlagardette@…) (diff)

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)

Change History

Changed 6 months ago by ernest.prabhakar@…

  • cc ernest.prabhakar@… added

Cc Me!

Changed 6 months ago by martinlagardette@…

  • description modified (diff)

Changed 4 months ago by james@…

This looks like it may be a duplicate or at least closely related to #562.

Changed 4 months ago by james@…

  • cc james@… added

Cc Me!

Note: See TracTickets for help on using tickets.