This is the expected behavior.
CreateScriptSourceFromString(string) defaults to SourceCodeKind.Expression
(ScriptEngine.cs) --
public ScriptSource/*!*/ CreateScriptSourceFromString(string/*!*/ code) {
ContractUtils.RequiresNotNull(code, "code");
maybe that is a bug:
the detail as follow:
private void btnExecute_Click(object sender, EventArgs e)
{
try
{
ScriptRuntimeSetup runtimeSetup = new ScriptRuntimeSetup(true);
ScriptRuntime ScriptRuntime = ScriptRuntime.Create(runtimeSetup);
ScriptRuntime.GlobalOption
... which was fixed in the last half hour or so, I see. :)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Keith J. Farmer
Sent: Friday, May 02, 2008 10:50 PM
To: Discussion of IronPython
Subject: Re: [IronPython] Announcing IronPython 2.0 Beta 2
7; could not be opened ('Unspecified error ')
IronPython
Error 5 Source file
'C:\Users\kfarmer\Workspace\Sandbox\IronPython_Main\Src\IronPython\Runti
me\Types\UserType.cs' could not be opened ('Unspecified error ')
IronPython
-Original Message-
Fr
w00t!
I wonder if all my hosting samples are broken... :-)
Michael
Dave Fugate wrote:
>
> Hello IronPython Community,
>
> We’re pleased to announce the release of IronPython 2.0 Beta 2. In
> addition to the usual bug fixes (~25 reported on CodePlex and ~50
> reported internally), this release
Hello IronPython Community,
We're pleased to announce the release of IronPython 2.0 Beta 2. In addition to
the usual bug fixes (~25 reported on CodePlex and ~50 reported internally),
this release has been partially focused on improving the performance of
IronPython, in particular startup perf.