Looking at the Operators class in the Microsoft.FSharp.Core namespace in Reflector, it appears that for some reason many of the operators throw that exception when called (not just subtraction but also op_Multiplication, op_Division, op_BitwiseAnd, etc.). However, there are many operators besides addition that will work, including things like op_Exponentiation, so I'm not sure what the reason for this behavior is...

By on 2/4/2009 8:50 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper