hubFS: THE place for F#

. . . are you on The Hub?
Welcome to hubFS: THE place for F# Sign in | Join | Help
in Search

const (string literals)

Last post 10-09-2007, 9:56 by dsyme. 1 replies.
Sort Posts: Previous Next
  •  10-09-2007, 8:59 3732

    const (string literals)

    Hi, I'm new to F#. I'm attempting to use it to build components with 'Decentralized Software Services' from the Microsoft Robotics Group. Unfortunately, some of the 'glue' this framework requires is that I expose a string literal from a class i.e. public const string Identifier = "..." in C# parlance.

    Can I currently do this? I've not had any luck so far.

    Thanks

    Nick.

     

  •  10-09-2007, 9:56 3733 in reply to 3732

    Re: const (string literals)

    No, this is a current known language limitation previously reported to us by the Robotics group. It will be addressed, i.e. we will allow a way to author const literal fields.

    There are no easy workarounds using F# alone. It is possible you should write this part of your app in C# for the time being.

    Kind regards

    Don

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems