public static void RegisterBinary(Type ret, Type left, char op, Type right, BinaryOperateFunc operation) { binary_operators.Add(new BinaryOperatorDef(ret, left, op, right), operation); }
public static void RegisterBinaryCommutative(Type ret, Type left, Operator op, Type right, BinaryOperateFunc operation) { binary_operators.Add(new BinaryOperatorDef(left, op, right), new OperationData <BinaryOperateFunc>(ret, operation, true)); }