Wiki
Show
Ignore:
Timestamp:
11/28/08 20:11:01 (3 years ago)
Author:
Chuck.Esterbrook
Message:

Added streams to the language. For example, int* or String*

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/Source/BackEndClr/SharpGenerator.cobra

    r1768 r1781  
    789789        return '0' 
    790790 
     791 
    791792class PassThroughType 
    792793    is partial 
     
    797798    get sharpRef as String is override 
    798799        return '/*passthrough*/object' 
     800 
     801 
     802class StreamType 
     803    is partial 
     804 
     805    get sharpInit as String is override 
     806        return 'new EmptyStream<[.theWrappedType.sharpRef]>()' 
     807 
     808    get sharpRef as String is override 
     809        assert .didBindInh and .didBindInt 
     810        return '/*[.name]*/[.box.sharpRef]' 
    799811 
    800812 
     
    14881500            sw.write(' = ') 
    14891501            _initExpr.writeSharpDef(sw) 
     1502        else if .type.isReference and not .type.nonNil inherits GenericParam 
     1503            sharpInit = .type.sharpInit 
     1504            if sharpInit.length 
     1505                sw.write(' = ') 
     1506                sw.write(sharpInit) 
    14901507        sw.write(';\n') 
    14911508