[Rubycocoa-devel 746] Re: auto-objc_export for Informal Protocol methods

Back to archive index

Laurent Sansonetti lsans****@apple*****
Sun Feb 18 01:35:43 JST 2007


Hi Kimura-san,

This looks good, however why would this be needed in reality? Normally  
you don't have to objc_export the informal protocol methods as  
RubyCocoa will handle this in RBObject. From the Objective-C runtime  
it doesn't matter if the informal protocol method is objc_exported or  
not.

Laurent

On Feb 17, 2007, at 3:46 PM, kimura wataru wrote:

> Hi,
>
> I wrote an experimental patch for automatic objc_export
> for informal protocol methods.
>
> This patch does:
>
> * add OSX._lookup_informal_method, to enable invoking
>   find_bs_informal_protocol_method() from Ruby.
> * invoke objc_export at definition of informal protocol methods.
>   (like automatic override)
> * add a test for this feature.
>
> I think this feature is useful, but the interface of  
> OSX._lookup_informal_method
> is not so good (its name, return value as hash, ...).
> How about this?
>
>
> -- 
> kimura wataru
> < 
> auto_export_informal 
> .patch>_______________________________________________
> Rubycocoa-devel mailing list
> Rubyc****@lists*****
> http://lists.sourceforge.jp/mailman/listinfo/rubycocoa-devel

-------------- next part --------------
An HTML attachment was scrubbed...
다운로드 


More information about the Rubycocoa-devel mailing list
Back to archive index