Hi,
this could be done, but I don't know about any project that would demonstrate it.

The simplest way would be to compile the FS file by invoking the F# compiler programatically (fsc.exe), then loading the reflected assembly using .NET reflection and then invoking some pre-defined entry-point of the F# code (you can for example wrap the user code into a function "main" and invoke this function).

Passing variables to the program automatically isn't easily possible, but you can for examle give the most important variables or some collection of variables to the compied F# function as an argument.

T.

By on 5/23/2008 3:47 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