[Mono-dev] Functional programming like pure ansi C
robertj at gmx.net
Thu Aug 16 06:51:37 EDT 2007
Stefan Fink wrote:
> we want to port our own scripting language (only the scripts) to mono (c#). i
> have a few questions :
> 1. Can i call a new Mono programm inside the other one ???
Yes. You'll have to use the APIs provided by the runtime
> 2. include functions from many files ????
> 3. call by value or call by reference ????
> 4. evaluation at runtime
It depends. When speed matters, you'll have to go the IL
generation way (Reflection.Emit). Otherwise use CodeDom
(standard c# code generation API).
The smallest entity is a method.
> 5. embedding mono in c / c++ application and call function from the script to
> the application
Yes. You have 2 choices: (a) implement the functions in a DLL and
use the .NET feature called "p/invoke". (b) embed the mono runtime
and expose internal calls to your scripts.
More information about the Mono-devel-list