Wiki

Changes between Version 7 and Version 8 of PortingC

Show
Ignore:
Timestamp:
11/22/10 20:11:03 (13 years ago)
Author:
todd.a
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PortingC

    v7 v8  
    2929  Remove any lines for  
    3030  {{{ 
     31#!cs 
    3132using System 
    3233using System.Collections.Generic 
     
    5051    e.g.  
    5152    {{{ 
     53#!cs 
    5254enum ID_CONTROLS  { 
    5355    ID_RADIO_ORIENT = 5999, 
     
    5961    to 
    6062    {{{ 
     63#!cobra 
    6164enum ID_CONTROLS 
    6265    ID_RADIO_ORIENT = 5999 
     
    838610. Fixup class constructor definitions 
    8487     For initializer/constructor change lines like : 
    85         {{{ public ClassName(params,...) : base(baseParams,...) }}} 
     88        {{{ 
     89#!cs public ClassName(params,...) : base(baseParams,...)  
     90}}} 
    8691      to 
    8792{{{ 
     93#!cobra 
    8894    cue init(params, ...) is public 
    8995        base.init(baseParams,...)  
     
    102108     e.g. 
    103109    {{{ 
     110#!cs 
    104111public GeoArea (string title, GeoPoint pos, Size size) : base(title, pos, size) 
    105112    }}} 
    106113   to  
    107114    {{{ 
     115#!cobra 
    108116cue init(title as String, pos as GeoPoint, size as Size ) is public 
    109117    base.init (title, pos, size) 
     
    139147        C# object -> Object (System.Object) [[br]] 
    140148    {{{ 
     149#!cs 
    141150public void OnFileChange( object sender, Event e ) 
    142151    }}}  
    143152   to  
    144153    {{{ 
     154#!cobra 
    145155def onFileChange(sender as Object, e as Event)   
    146156 
    147157    # no param method 
     158#!cs 
    148159    public override bool OnInit() 
    149160    }}} 
    150161     -> 
    151162    {{{ 
     163#!cobra 
    152164def onInit as bool is override  
    153165    # or def onInit as bool is public, override # explicit 
     
    252264    e.g. 
    253265    {{{ 
     266#!cs 
    254267[STAThread] 
    255268static public void main() 
     
    257270    becomes  
    258271    {{{ 
     272#!cobra 
    259273def main is shared has STAThread  
    260274    }}}