Issue #7572 has been updated by shugo (Shugo Maeda).

File defineclass_fix_1220.diff added

?????違?с?????

ko1 (Koichi Sasada) wrote:
> ??拷?????????劫????э??絨??????雁?????????????????с???????????鐚?

篁????define_type???ゃ????????鴻????????潟?????????с???????違??scoped??????????(class Foo::Bar?????????綵???)???
??????違?????????障?c????鴻???????c???????????羂?????????障?????

箴??????違??篁ヤ?????????????????????с??????????????

  筝?篏?3?????????    -> 絎?臂??帥?ゃ?? (0 = ?????, 1 = ??合?違????, 2 = ??≪?吾?ャ?若??, 3篁ヤ??????膣?)
  筝???????4???????????? -> scoped????1???????????с?????????0
  筝???????5???????????? -> ??鴻?若????若???鴻?????絎?????????????????1???????????с?????????0

??隙????????篁ヤ????????????臂??????????????障?????

  typedef enum {
      VM_DEFINE_TYPE_CLASS           = 0x00,
      VM_DEFINE_TYPE_SINGLETON_CLASS = 0x01,
      VM_DEFINE_TYPE_MODULE          = 0x02,
      /* 0x03..0x06 is reserved */
      VM_DEFINE_TYPE_MASK            = 0x07,
  } rb_vm_define_type_t;

  #define VM_DEFINE_FLAG_SCOPED         0x08
  #define VM_DEFINE_FLAG_HAS_SUPERCLASS 0x10

??????拷????т???????????????????????羞私???????障?????
i686-linux (Ubuntu 12.04)筝????make check???????????????腆肴??????????障?????

----------------------------------------
Bug #7572: ????劫??臂?????????鴻?若????若???鴻????????鴻?с?????????????絎????????????若????????篋??????????
https://bugs.ruby-lang.org/issues/7572#change-34885

Author: tadf (tadayoshi funaba)
Status: Assigned
Priority: Low
Assignee: ko1 (Koichi Sasada)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-12-16 trunk 38415) [i686-linux]


????劫??臂?????????鴻?若????若???鴻????????鴻?с?????????????絎????????????若????????篋?????????????

$ ruby -v -e 'class Foo < nil; end'
ruby 2.0.0dev (2012-12-16 trunk 38415) [i686-linux]

$ ruby -v -e 'class Foo < false; end'
ruby 2.0.0dev (2012-12-16 trunk 38415) [i686-linux]

$ ruby -v -e 'class Foo < true; end'
ruby 2.0.0dev (2012-12-16 trunk 38415) [i686-linux]
-e:1:in `<main>': wrong argument type true (expected Class) (TypeError)



-- 
http://bugs.ruby-lang.org/