[Mono-list] CSharp interpreter feedback, and a gift
Miguel de Icaza
miguel at novell.com
Fri Jan 28 11:56:42 EST 2011
> If there are compiler commands to allow functions and classes, I'd
> love to do that. That is the biggest limitation.
It is planned, we just do not know when it will be done, we have a
number of other urgent tasks ahead of us.
> 1) it would be handy to inject a variable into the environment of the
> Evalutor. Something like: Evaluator.SetValue("x", my_value). Of
> course, one can do that from inside the interpreter, but I have values
> outside that I would like to inject in. There is probably a way
> through reflection to get to the value, but that would be a handy
Agreed. Currently the evaluator is a static API, and we want to
introduce an instance API, so we can support independent scopes. When
we do that, we will likely add support for this.
In the meantime, if you want to inject a handful of variables, you can
achieve that by creating your own InteractiveBaseClass.
More information about the Mono-list