Changeset 2122
- Timestamp:
- 06/24/09 07:22:18 (3 years ago)
- Location:
- cobra/trunk
- Files:
-
- 2 modified
-
Source/Expr.cobra (modified) (1 diff)
-
Tests/120-classes/400-methods.cobra (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cobra/trunk/Source/Expr.cobra
r2114 r2122 668 668 transformTarget._transformTo(postCall) 669 669 670 def _bindImpArgs 670 def _bindImpArgs 671 671 num = 1 672 for arg in _args672 for arg in List<of Expr>(_args) 673 673 try 674 674 if arg inherits AssignExpr 675 675 arg.right.bindImp # 'x=y' has special treatment in arguments 676 676 else 677 arg.bindImp 678 assert arg.didBindImp 677 boundArg = arg.bindImp 678 if boundArg is not arg # transformation 679 _args[num-1] = boundArg 680 assert boundArg.didBindImp 679 681 catch ne as NodeException 680 682 ne.prefixMessage('For "[_name]" arg [num]: ') -
cobra/trunk/Tests/120-classes/400-methods.cobra
r2046 r2122 95 95 assert _someObject2 == 5 96 96 assert _someObject3.x == 0 and .someObject3.y == 0 97 .setXY(_someInt, _someInt)



