Show
Ignore:
Timestamp:
08/12/08 21:13:54 (5 months ago)
Author:
Chuck.Esterbrook
Message:

Added partial classes.
ticket:10

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/Developer/IntermediateReleaseNotes.text

    r1572 r1573  
    11Post 0.8 
     2 
     3* Added partial classes, a la C# and VB. This enables class (and struct) declarations to be split across files. This can be useful for organizing generated code or even manually written code based on purpose. ticket:10 
     4.code 
     5        # file Foo.cobra 
     6        class Foo 
     7                is partial 
     8                 
     9                var _name as String 
     10                 
     11                pro name from var 
     12         
     13        # file Foo.gen.cobra 
     14        class Foo 
     15                is partial 
     16                 
     17                def generatedMethod 
     18                        pass 
     19 
    220 
    321* Added new comment markers /# ... #/ which can be used for block comments and inline comments. Block comments must start at the beginning of a line and can be used to comment out multiple lines of source. They can be nested. Inline comments also start with /# and end with #/, but within the same line. They can be used to comment out a portion of a line. Regular end of line comments are still available and still the norm.