Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 250409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:30:31+00:00 2026-05-11T21:30:31+00:00

While migrating some code to the latest version of F#, included in VS2010 b1,

  • 0

While migrating some code to the latest version of F#, included in VS2010 b1, I’ve encountered an issue and I’d like to know if there’s a workaround available and – if not – why was the behavior of the F# compiler modified not to support the scenario.


type Foo(a) =
    [<OverloadID("CurriedAbc")>]
    member public x.Abc (p:(oneType * anotherType) seq) otherParm = method impl...

    //this overload exists for better compatibility with other languages
    [<OverloadID("TupledAbc")>]
    member public x.Abc (p:Dictionary<oneType, anotherType>, otherParm) =
        x.Abc(p |> Seq.map(fun kvp -> (kvp.Key, kvp.Value))) otherParm

This code produces the following compile-time error:

error FS0191: One or more of the overloads of this method has curried arguments. Consider redesigning these members to take arguments in tupled form

Please mind that this used to work flawlessly on F# 1.9.6.2 (Sept. CTP)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T21:30:32+00:00Added an answer on May 11, 2026 at 9:30 pm

    The reason for the change is in the detailed release notes:

    Optimizations for Curried Methods

    A curried member looks like this:

    type C() =

    static member Sum a b = a + b    
    

    In previous implementations of F#
    curried members were compiled less
    efficiently than non-curried members.
    This has now been changed. However,
    there are now some small restrictions
    on the definition of curried members:

    • curried members may not be overloaded
    • some definitions of curried members may need to be adjusted to add the correct number of parameters to the definition

    Since your overloading can be resolved only on the first parameter, you should be able to work round it by changing the curried version to:

        [<OverloadID("CurriedAbc")>]
        member public x.Abc (p:(oneType * anotherType) seq)
           = fun otherParm -> method impl...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While I've seen rare cases where private inheritance was needed, I've never encountered a
I found this Perl script while migrating my SQLite database to mysql I was
I am migrating C# code from using a NetworkStream to SSLStream, however where I
Came across something strange while migrating to my new server. I have a script
Hi I'm migrating a few databases from sql 2000 to sql 2008. while running
I am migrating my app code base to iPhone SDK 4. In one of
While the C# spec does include a pre-processor and basic directives (#define, #if, etc),
While going through university and from following the development of SO, I've heard a
While setting up CruiseControl, I added a buildpublisher block to the publisher tasks: <buildpublisher>
While working in a Java app, I recently needed to assemble a comma-delimited list

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.