Re: [Ironruby-core] IronRuby DynamicObject.TryGetMember returning null

2011-09-09 Thread Benjamin Joldersma
Heads up, looks like this applies to the Expando object as well, here's an even simpler gist: https://gist.github.com/1205646 -- Posted via http://www.ruby-forum.com/. ___ Ironruby-core mailing list Ironruby-core@rubyforge.org

Re: [Ironruby-core] IronRuby DynamicObject.TryGetMember returning null

2011-09-09 Thread Jimmy Schementi
Try implementing TryInvokeMember. In IronRuby d.foo actually gets and invokes foo, so it will use DynamicObject's TryInvokeMember. This is different from IronPython and C# where method calls are two operations: TryGetMember (d.Foo) and TryInvoke (d.Foo()). The rough IronRuby equivalent to this

Re: [Ironruby-core] IronRuby DynamicObject.TryGetMember returning null

2011-09-09 Thread Benjamin Joldersma
Okay, very interesting stuff. I had seen you and others suggest that in other places, but I thought I was insulated from it, because I *was* implementing TryInvokeMember! After further examination, I seem to have stumbled to a solution. In my actual code, I was trying to return a function