Problem defining or finding methods on a metaclass #37

Closed
brixen opened this Issue Oct 7, 2009 · 1 comment

Projects

None yet

2 participants

Owner
brixen commented Oct 7, 2009

LH 614 reported by Sam Aaron

Run this code: http://gist.github.com/204542

ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]
A.cheese: edam
B.cheese: stilton
a.cheese: shropshire blue
b.cheese: cheddar
b_with_meta.cheese: cheshire
b_with_meta.metaclass.cheese: stilton
b_with_meta_meta.cheese: brie
b_with_meta_meta.metaclass.cheese: gouda
b_with_meta_meta.metaclass.metaclass.cheese: wensleydale
gauss:rubinius brian$ bin/rbx -v meta.rb
rubinius 0.13.0-dev (1.8.7 d300514e 2009-11-06 JI) [i686-apple-darwin9.8.0]
A.cheese: edam
B.cheese: stilton
a.cheese: shropshire blue
b.cheese: cheddar
b_with_meta.cheese: cheshire
An exception occurred running meta.rb
    No method 'cheese' on #> (MetaClass) (NoMethodError)

Backtrace:
  Kernel(MetaClass)#cheese (method_missing) at kernel/delta/kernel.rb:45
                       main.__script__ at meta.rb:57
    Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:221
           Compiler::Utils.single_load at kernel/compiler/compile.rb:244
   Compiler::Utils.load_from_extension at kernel/compiler/compile.rb:330
               Rubinius::Loader#script at kernel/loader.rb:327
                 Rubinius::Loader#main at kernel/loader.rb:406
                     Object#__script__ at kernel/loader.rb:454
Owner
evanphx commented Dec 16, 2009

Fix the MOP. Closed by ab073c4. Passes MOP horror test.

MetaClass is dead. Long live Class#metaclass_object.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment