Wiki

Changes between Version 8 and Version 9 of C

Show
Ignore:
Timestamp:
07/11/10 08:27:44 (14 years ago)
Author:
hopscc
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • C

    v8 v9  
    2929    * In resulting binaries such as .exe and .dll, the .NET standard CamelCase is used so that Cobra libraries vend out naturally to C# and VB.NET  
    3030 * Class names must be (upper) [http://en.wikipedia.org/wiki/CamelCase CamelCased] or at least start with an upper case letter) 
    31  * instance variable optionally prefixed with _ (implicitly makes them private). If so prefixed can be accessed directly in methods 
     31 * instance variable optionally prefixed with _ (implicitly makes them protected) or __ (implicitly makes them private.  
     32   If so prefixed can be accessed directly in methods (without a leading '.') 
    3233 * methods (and properties) on current object invoked with leading '''this.''' or more usually (shortcut) just '''.'''. 
    3334 * constructor/initializer method is called init, has no return value 
    3435  
    3536 * String type accessed as '''String'''  
    36  * Numeric types specified as int, uint, float and double types ( rather than Int, UInt, Float, Double) 
     37 * Numeric types specified as int, uint, float and double types (rather than Int, UInt, Float, Double) 
    3738 * Sized int and uint types all have the same naming form 
    3839    * int8, int16, int/int32, int64 instead of  SByte, Int16, Int32/int, Int64 
     
    6566 * 'Raw' Strings (r"a raw string") no escape sequence expansion ( vs c# @"a raw string") 
    6667 * '!NoSubstitution' strings ( ns" no substitution [done] here")  
    67  * !DocStrings on Programs, classes, Instance variables, methods and properties 
     68 * !DocStrings on Programs, Classes, Interfaces (etc), instance variables, methods and properties 
    6869 * Different syntax for characters c'x' 
    69  $ since '[] used for Lists array literals are specified using ''' @[]''' - comma separated values 
    70  * '''ref''' keyword for getting pointer to method ( reference) rather calling it ( for delegates) 
    71  * '''sig''' keyword or declaring a delegate type 
     70 * since '[] used for declaring literal Lists, array literals are specified using ''' @[]''' - comma separated values 
     71 * '''ref''' keyword for getting pointer to method (reference) rather than calling it (for delegates) 
     72 * '''sig''' keyword for declaring a delegate type 
    7273 
    7374 * '''def''' keyword to declare a method/function