I believe this is a design choice. I only had time to glance at the spec, I see that 14.4

[link:research.microsoft.com]

Method Application Resolution

contains text

Decompose arg into a list of arguments as follows

§ If arg is a <i>syntactic <i>tuple arg1 ,..., argN then use these arguments. where the <i>emphasis <i>is my own.

By on 2/18/2010 9:44 AM ()

I see. So the first example only works because the compiler substitutes pair with its definition?

By on 2/19/2010 12:38 AM ()

I see. So the first example only works because the compiler substitutes pair with its definition?

I would say that the first example works because there's no overloading, and thus no 'Method Application Resolution', and thus no walking through spec words that say <i>syntactic <i>tuple.

By on 2/19/2010 8:04 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