Wiki

Changes between Version 4 and Version 5 of C

Show
Ignore:
Timestamp:
10/31/08 19:29:26 (16 years ago)
Author:
Chuck
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • C

    v4 v5  
    1717 * Line Oriented  
    1818     * '''#''' to comment line (instead of //) 
    19      * No multiline comments     
    20      * '''_''' to continue line 
    21      * Tab or (4) Spaces to indent line (Fixed 4 space indent), Cannot mix Tabs and spaces for an indent level 
    22      * No statement terminator ( goodbye to ';') 
    23  * Numbers default to decimal type (rather than int)- can be overridden (to float/double) with a compiler 
     19     * No multiline comments 
     20     * Line continuation is implied in method argument lists: foo.bar(arg1,[NEWLINE]arg2) 
     21     * Use a trailing '''_''' for explicit line continuation 
     22     * Tab or 4 Spaces to indent line (Fixed 4 space indent), Cannot mix Tabs and spaces for an indent level 
     23     * No statement terminator (goodbye to ';') 
     24 * Fractional numbers default to decimal type (rather than int)- can be overridden (to float/double) with a compiler 
    2425   commandline option 
    2526 
    26  * Methodnames and properties start with lowercase. (i.e lowerCamelCase) 
    27     * Access to methods/properties in used libraries are also done via (implicitly mapped ) lowerCamelCase methodnames  
     27 * Method names and properties start with lowercase. (i.e lowerCamelCase) 
     28    * Access to methods/properties in used libraries are also done via (implicitly mapped) lowerCamelCase methodnames 
     29    * 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  
    2830 * Class names must be (upper) [http://en.wikipedia.org/wiki/CamelCase CamelCased] or at least start with an upper case letter) 
    2931 * instance variable optionally prefixed with _ (implicitly makes them private). If so prefixed can be accessed directly in methods