[MacRuby-devel] [macruby] #70: Need a RubyCocoa compatible layer

macruby ruby-noreply at macosforge.org
Mon Jun 2 13:08:20 PDT 2008


#70: Need a RubyCocoa compatible layer
-----------------------------------+----------------------------------------
 Reporter:  lsansonetti at apple.com  |        Owner:  eloy.de.enige at gmail.com
     Type:  defect                 |       Status:  new                    
 Priority:  blocker                |    Milestone:  MacRuby 0.3            
Component:  MacRuby                |   Resolution:                         
 Keywords:                         |  
-----------------------------------+----------------------------------------
Old description:

> To preserve backwards compatibility, but also to help developers to
> migrate their code from RubyCocoa to MacRuby, we need a small layer on
> top of MacRuby that emulates the RubyCocoa syntax and semantics.
>
> The layer would ship with MacRuby, and would emit warnings on every
> RubyCocoa-specific expression, to explain the developer how to rewrite it
> for MacRuby and get rid of the warning.
>
> The warnings would be emitted by default, but we also need a way to
> disable them (even if -w is passed to the interpreter). Some developers
> might want to use the layer as is and not port their code immediately.

New description:

 To preserve backwards compatibility, but also to help developers to
 migrate their code from RubyCocoa to !MacRuby, we need a small layer on
 top of !MacRuby that emulates the RubyCocoa syntax and semantics.

 The layer would ship with !MacRuby, and would emit warnings on every
 RubyCocoa-specific expression, to explain the developer how to rewrite it
 for !MacRuby and get rid of the warning.

 The warnings would be emitted by default, but we also need a way to
 disable them (even if -w is passed to the interpreter). Some developers
 might want to use the layer as is and not port their code immediately.

-- 
Ticket URL: <http://ruby.macosforge.org/trac/ticket/70#comment:1>
macruby <http://ruby.macosforge.org/>


More information about the MacRuby-devel mailing list