Laurent Sansonetti
lsans****@apple*****
Tue Jan 16 20:54:25 JST 2007
On Jan 16, 2007, at 9:00 AM, Fujimoto Hisa wrote: > On 2007/01/16, at 11:52, Laurent Sansonetti wrote: >> It's only available via subclassing though. I didn't updated >> objc_export. I think that we should have a separate DSL method for >> this. >> >> Like: >> >> class NSObject >> def self.myMethod >> 42 >> end >> objc_export_singleton :myMethod, 'int' >> end >> >> We need a good name, and objc_export_singleton looks a bit long to >> me. >> Any suggestion? > > mmmh, i should see this case when thinking about objc_export. > > i would prefer a bit objc_class_export rather than > objc_export_singleton though almost no difference. The problem with objc_class_export is that it can mean "exporting an ObjC class". I think it's confusing. objc_export_singleton is a bit better to me, Rubyists know about singleton, but the name is too long. Mmmmmh. Laurent