Martin Smith
2009-Oct-05 21:17 UTC
[Ironruby-core] IronRuby issues with arrays of System::Type
Hello, If i run the following code: a = System::Array[System::Type].new(5) a[0] I get an invocation error. However, if I instead on the second line type: a.get_value(0) I get nil back as expected. Is this a bug with arrays of System::Type specifically? Thanks, Martin
Tomas Matousek
2009-Oct-05 22:18 UTC
[Ironruby-core] IronRuby issues with arrays of System::Type
Interesting. I''ve filed a bug: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2686 Tomas -----Original Message----- From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Martin Smith Sent: Monday, October 05, 2009 2:17 PM To: ironruby-core at rubyforge.org Subject: [Ironruby-core] IronRuby issues with arrays of System::Type Hello, If i run the following code: a = System::Array[System::Type].new(5) a[0] I get an invocation error. However, if I instead on the second line type: a.get_value(0) I get nil back as expected. Is this a bug with arrays of System::Type specifically? Thanks, Martin _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core
Martin Smith
2009-Oct-05 23:22 UTC
[Ironruby-core] IronRuby issues with arrays of System::Type
Thanks Tomas. Martin On Mon, Oct 5, 2009 at 3:18 PM, Tomas Matousek <Tomas.Matousek at microsoft.com> wrote:> Interesting. I''ve filed a bug: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2686 > > Tomas > > -----Original Message----- > From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Martin Smith > Sent: Monday, October 05, 2009 2:17 PM > To: ironruby-core at rubyforge.org > Subject: [Ironruby-core] IronRuby issues with arrays of System::Type > > Hello, > > If i run the following code: > > a = System::Array[System::Type].new(5) > a[0] > > I get an invocation error. > > However, if I instead on the second line type: > > a.get_value(0) > > I get nil back as expected. ?Is this a bug with arrays of System::Type specifically? > > Thanks, > Martin > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core >