Affects Version/s: 0.9.3
Fix Version/s: None
Component/s: Runtime (Boo.Lang)
Number of attachments :
I tried to use Linq methods to process results returned by method IQuackFu.QuackInvoke. Because you are reading this issue you could guess that I did not succeed.
There are two problems in runtime Boo environment which prevents using non-Boo generic extensions.
First is that there is no method to register CLR extensions in RuntimeServices.
Second is that runtime method resolver doesn't resolve generic method definitions.
I propose to add RegisterClrExtensions method to Boo.Lang.Runtime.ExtensionRegistry. Also I propose to add logic resolving generic method definitions to Boo.Lang.Runtime.MethodResolver.
def QuackSet(name as string, parameters as (object), value) as object:
def QuackGet(name as string, parameters as (object)) as object:
def QuackInvoke(name as string, args as (object)) as object:
l1 = (1,)
l2 = (2,3)
if name == "Invoke1":
foo = Foo()
l3 = foo.Invoke1().Concat(foo.Invoke2())