You would like to have an 'eval' statement as in dynamic languages, though this is not as straightforward as it may seem. F# interactive compiles code on the fly into in-memory assemblies and state sharing is not that trivial since it is FSI responsibility to check for names and make everything work smooth. However it is possible, you may try to embed a variation of fsi.fs file into your program where the readline functions are replaced by an in-memory buffer where you program writes into the fsi. This is not impossible to do and allows you to ask F# interactive to load scripts and coordinate state access.

By on 11/3/2007 1:55 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