[Mono-list] LolCode on the DLR with Mono
Sandy Dunlop
sandy.dunlop at gmail.com
Sat Nov 17 06:08:10 EST 2007
Hi, I've downloaded the Microsoft DLR team's LolCode implementation
for the DLR from here:
http://www.iunknown.com/files/LolCode.zip
And the dependencies as described here:
http://www.hanselman.com/blog/
TheWeeklySourceCode11LOLCodeDLREdition.aspx
I've written a Makefile that allows the LolCode compiler to build
under Mono:
http://sorn.net/~sandyd/lolcode-dlr/Makefile
When I run it, I get the following output:
marvin:/Users/sandyd/Projects/lolcode/LolCode sandyd$ mono lc.exe
Demo.lc
HAI WORLD!
CRAZY
System.ArgumentException: The method should be static.
Parameter name: method
at System.Delegate.CreateDelegate (System.Type type,
System.Reflection.MethodInfo method, Boolean throwOnBindFailure)
[0x00000]
at System.Delegate.CreateDelegate (System.Type type,
System.Reflection.MethodInfo method) [0x00000]
at Microsoft.Scripting.Utils.InvokeHelper`2
[System.Object,System.Type]..ctor (System.Reflection.MethodInfo )
[0x00000]
at <0x00000> <unknown method>
at (wrapper managed-to-native)
System.Reflection.MonoCMethod:InternalInvoke (object,object[])
at System.Reflection.MonoCMethod.Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder,
System.Object[] parameters, System.Globalization.CultureInfo culture)
[0x00000]
Does anyone know why CreateDelegate is failing when called from the
Microsoft.Scripting assembly?
Is this something I can work around?
Thanks,
Sandy
More information about the Mono-list
mailing list