Changes between Version 7 and Version 8 of PortingC
- Timestamp:
- 11/22/10 20:11:03 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PortingC
v7 v8 29 29 Remove any lines for 30 30 {{{ 31 #!cs 31 32 using System 32 33 using System.Collections.Generic … … 50 51 e.g. 51 52 {{{ 53 #!cs 52 54 enum ID_CONTROLS { 53 55 ID_RADIO_ORIENT = 5999, … … 59 61 to 60 62 {{{ 63 #!cobra 61 64 enum ID_CONTROLS 62 65 ID_RADIO_ORIENT = 5999 … … 83 86 10. Fixup class constructor definitions 84 87 For initializer/constructor change lines like : 85 {{{ public ClassName(params,...) : base(baseParams,...) }}} 88 {{{ 89 #!cs public ClassName(params,...) : base(baseParams,...) 90 }}} 86 91 to 87 92 {{{ 93 #!cobra 88 94 cue init(params, ...) is public 89 95 base.init(baseParams,...) … … 102 108 e.g. 103 109 {{{ 110 #!cs 104 111 public GeoArea (string title, GeoPoint pos, Size size) : base(title, pos, size) 105 112 }}} 106 113 to 107 114 {{{ 115 #!cobra 108 116 cue init(title as String, pos as GeoPoint, size as Size ) is public 109 117 base.init (title, pos, size) … … 139 147 C# object -> Object (System.Object) [[br]] 140 148 {{{ 149 #!cs 141 150 public void OnFileChange( object sender, Event e ) 142 151 }}} 143 152 to 144 153 {{{ 154 #!cobra 145 155 def onFileChange(sender as Object, e as Event) 146 156 147 157 # no param method 158 #!cs 148 159 public override bool OnInit() 149 160 }}} 150 161 -> 151 162 {{{ 163 #!cobra 152 164 def onInit as bool is override 153 165 # or def onInit as bool is public, override # explicit … … 252 264 e.g. 253 265 {{{ 266 #!cs 254 267 [STAThread] 255 268 static public void main() … … 257 270 becomes 258 271 {{{ 272 #!cobra 259 273 def main is shared has STAThread 260 274 }}}