Re: [Rubydotnet-developer] rubydotnet - first announcement
Status: Alpha
Brought to you by:
thomas
From: Thomas S. <th...@th...> - 2003-09-06 10:58:56
|
> It would be fine with us for you to use that code under Ruby's license. Thanks for asking! > > If you could attribute it to us, that would be great as well. (If such attribution is awkward or > inappropriate in your environment - that is OK too.) Great thanks. I have taken the emit code in your DynamicDelegate and created a DynamicLanguageSupport.dll library that given a dynamic object interface: public interface IObject { public object send(string message, object[]args); } Can generate appropriate delegate and class types using these two interfaces public class DynamicDelegateFactory { public static Delegate create(Type delegateType, IObject o, string message); } You can also create the appropriate wrapper object for ruby instances using public class DynamicClassFactory { // creates a subclass of baseType (which must implement IObject above) // that implements the interfaces in interfaces public static Type getType(Type baseType, Type[] interfaces); } I'm thinking this is just an example of code that is useful for any dynamic scripting language that wants to interop with .net, so I have extracted it into a separate project (cvs.sf.net:/cvsroot/rubydotnet co misc/DynamicLanguageSupport). I have a problem that I hope you guys can help me with. The DynamicLanguageSupport.dll is now needed by my dotnet.so, but I need to put the DynamicLanguageSupport.dll next to the ruby.exe binary otherwise it isn't found. Any suggestions? Cheers, Thomas |