Hello Andrew,
Andrew Peters wrote:
> I think this is because you need to reference the IronRuby.Libraries
> dll.
> Strange error I know.
>
> On Sat, Nov 15, 2008 at 7:33 PM, Benjamin Van der veen
> <[EMAIL PROTECTED]
Ah, yes, this fixed the stack overflow error. Strange indeed—thanks for
the tip! However, it's still not properly resolving the property
correctly:
MissingMethodException: undefined method `text' for
#<My::Namespace::TestClass:0x000005c>
I tried changing TestClass' fields to properties so that they would get
compiled as methods:
class TestClass
{
public string Text { get; set; }
public int Number { get; set; }
}
but no dice. Also tried capitalizing "Text". Still works with
String.Length though (whether I reference it as "my_var.length" or
"my_var.Length". Any ideas?
(Also, as somewhat of a side-note, is there a different syntax for
accessing field on CLR objects in IronRuby? Is this possible or must
they be properties?)
Thanks again,
benjamin
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core