Projects

Ticket #626 (closed defect: duplicate)

Opened 2 years ago

Last modified 10 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: MacRuby 0.11
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 2 years ago by ernest.prabhakar@…

  • cc ernest.prabhakar@… added

Cc Me!

Changed 23 months ago by martinlagardette@…

  • description modified (diff)

Changed 21 months ago by james@…

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

Changed 21 months ago by james@…

  • cc james@… added

Cc Me!

Changed 14 months ago by eloy.de.enige@…

  • status changed from new to closed
  • resolution set to duplicate

Indeed a duplicate of #562.

Changed 10 months ago by lsansonetti@…

  • milestone set to MacRuby 0.11

Should be fixed in master.

Note: See TracTickets for help on using tickets.