Changes between Version 4 and Version 5 of C
- Timestamp:
- 10/31/08 19:29:26 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
C
v4 v5 17 17 * Line Oriented 18 18 * '''#''' 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 24 25 commandline option 25 26 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 28 30 * Class names must be (upper) [http://en.wikipedia.org/wiki/CamelCase CamelCased] or at least start with an upper case letter) 29 31 * instance variable optionally prefixed with _ (implicitly makes them private). If so prefixed can be accessed directly in methods