hubFS: THE place for F#

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

#define in source code for conditional compilation

Last post 07-31-2008, 19:10 by Associat0r. 2 replies.
Sort Posts: Previous Next
  •  07-23-2008, 11:56 6434

    #define in source code for conditional compilation

    Hello is there a way to make a #define in the source code itself? and with a value like for example "#define CONSTANT 2" ?
  •  07-30-2008, 15:08 6478 in reply to 6434

    Re: #define in source code for conditional compilation

    There is no way to do this in F#.  You can specify --define on the command-line and use them e.g. in #if, but that's all.
  •  07-31-2008, 19:10 6495 in reply to 6478

    Re: #define in source code for conditional compilation

    brianmcn:
    There is no way to do this in F#.  You can specify --define on the command-line and use them e.g. in #if, but that's all.

    Thanks I knew about the command line switch, but are there plans to allow it in code in a next version?
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems