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.

By on 7/30/2008 3:08 PM ()

Also what about #elif

By on 12/12/2009 8:57 AM ()

No plans for these as yet.

Note that you can nest to get the same behavior as the posited #elif, e.g.

#if FOO
blah
#else
#if BAR
blah
#endif
#endif

By on 12/12/2009 11:15 AM ()

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?

By on 7/31/2008 7:10 PM ()
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