Hi Charles,

Yes, F# files depend on the order they are built in, this is a common feature of the ML family of languages. The order has two major effects:

- Functions are scoped forward from the first file passed in the common line
- Only top level bindings in the last file are executed automatically, the rest are executed the first time they are touched.

In visual studio the order is determined by the order that they appear in the project explore, which is again determined by the order they appear in the project file. The current release of F# visual studio integration offers no good way of changing the order, other than editing the project file in a text editor. I believe that the upcoming CTP release of the “productized” version of F# will offer a better way for the programmer to control the order of compilation.

Cheers,
Rob

By on 6/23/2008 12:48 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