Changeset 1569 for cobra/trunk/Source/Compiler.cobra
- Timestamp:
- 08/06/08 02:23:08 (5 months ago)
- Files:
-
- 1 modified
-
cobra/trunk/Source/Compiler.cobra (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cobra/trunk/Source/Compiler.cobra
r1542 r1569 516 516 else, throw FallThroughException(.options['number']) 517 517 return _numberType to ! 518 518 519 set numberTypeName as String 520 """ 521 Set `number` type from a string/name. 522 """ 523 require value in ['decimal', 'float', 'float32', 'float64'] 524 branch value 525 on 'decimal', _numberType = .decimalType 526 on 'float', _numberType = .floatType 527 on 'float32', _numberType = .floatType(32) 528 on 'float64', _numberType = .floatType(64) 529 else, throw FallThroughException(value) 530 519 531 get passThroughType as PassThroughType 520 532 if _passThroughType is nil
