Hi Given the following (contrived) code:
namespace PersonLibrary { public class Person { public int Id { get; set; } public string Name { get; set; } } public class Friend { public Friend(Person person) { Person = person; } public Person Person { get; private set; } } } Wouldn't you expect the following the code to output JoeSchmoe: load_assembly 'PersonLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' class MyFriend < PersonLibrary::Friend def initialize(pers) super @pers = pers end def pers @pers end end person = PersonLibrary::Person.new person.name = "JoeSchmoe" person.id = 1 my_friend = MyFriend.new person puts my_friend.pers.name But instead it gives me: test.rb:0: allocator undefined for MyFriend (TypeError) This happens when I call new on the class Should I file a bug for that? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero)
_______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core