Re: [IronPython] unsupported operand type(s) for operator overloading.

2009-05-13 Thread 李兵
type(s) for operator overloading. Hi, I implemented '' operator overloading in C# class. But When I used ScriptRuntime compile the expression that use '' operator, I got a exception 'unsupported operand type(s) for operator overloading'. The following is C# code. public static

[IronPython] unsupported operand type(s) for operator overloading.

2009-05-12 Thread 李兵
Hi, I implemented '' operator overloading in C# class. But When I used ScriptRuntime compile the expression that use '' operator, I got a exception 'unsupported operand type(s) for operator overloading'. The following is C# code. public static Group operator (Condition left, Condition

Re: [IronPython] unsupported operand type(s) for operator overloading.

2009-05-12 Thread Seo Sanghyeon
2009/5/13 李兵 dreamwinte...@gmail.com: IronPython expression like this ' A.Create(Audit) ==  A.Create(Test1) A.CreateProperty(Sum) == A.Create(Test2) ' This is a rare pitfall. In C (and C#), == has higher precedence than , but in Python, has higher precedence than ==. So IronPython is