kimura wataru
kimur****@i*****
Wed Mar 15 21:45:25 JST 2006
On Tue, 14 Mar 2006 13:11:58 +0000, Jonathan Paisley wrote: >> I'm worry about compatibility of this change. The feature >> const_missing >> is available on ruby-1.8.0 or later. > Do know how many RubyCocoa users are still using ruby 1.6? > Binary packages for 10.3 depend on ruby 1.6.8. It seems that most of users use binary backage for 10.4 or tarball of source. http://sourceforge.net/project/showfiles.php?group_id=44114 >> I think we can treat this symbols (NS...) as constants. > Looks reasonable. I got a runtime warning: > > warning: rb_define_const: invalide name > `_NSConstantStringClassReference' for constant > > Small patch to only define constants with leading [A-Z]: > Thanks! I think these consntans of Cocoa are not needed in ruby. @@ -286,6 +286,7 @@ $notimpl_cnt = 0 consts.each do |info| reconfig_info(info) + next unless info.name =~ /\A[A-Z]/ # ignore private constants ret_a.concat gen_def_c_func(info, 0) ret_b.concat gen_def_rb_mod_func(info, 0) unless /\Aconst NS\w+CallBacks\z/ =~ info.rettype # NSHashTableCallBacks... -- kimuwa wataru