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/Cobra.Lang/Misc.cobra

    r1773 r1781  
    11namespace Cobra.Lang 
    22 
     3    class EmptyStream<of T> 
     4        implements IEnumerable<of T> 
     5     
     6        def getEnumerator as IEnumerator<of T> 
     7            yield break 
     8     
     9        def getEnumerator as System.Collections.IEnumerator 
     10            implements System.Collections.IEnumerable 
     11            return .getEnumerator  
     12     
    313    interface ITreeBuilder 
    414        def indent