Wiki
Show
Ignore:
Timestamp:
03/14/10 06:45:43 (2 years ago)
Author:
Chuck.Esterbrook
Message:

Arrays and lists can now be compared with == and <>.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/Source/Expr.cobra

    r2304 r2316  
    12041204            if _target.isKindOf(.compiler.typeType) 
    12051205                if _target inherits IPotentialTypeExpr and (pt = (_target to IPotentialTypeExpr).potentialType) 
    1206                     _transformTo(TypeExpr(.token, ArrayType(pt))) 
    1207                     return                   
     1206                    _transformTo(TypeExpr(.token, .typeProvider.arrayType(pt to !))) 
     1207                    return 
    12081208                else 
    12091209                    .throwError('Unknown array type.') 
     
    28382838 
    28392839 
    2840 class ArrayLit 
    2841     is partial 
    2842     inherits SequenceLit 
     2840class ArrayLit inherits SequenceLit is partial 
    28432841 
    28442842    # CC: should just inherit this because no initializers are defined 
     
    28472845 
    28482846    def _makeTypeWith(type as IType) as IType is override 
    2849         return ArrayType(type) 
     2847        return .typeProvider.arrayType(type) 
    28502848 
    28512849    get brackets as List<of String> is override