[Ironruby-core] IronRuby issues with arrays of System::Type

Martin Smith martin.smith.jr at gmail.com
Mon Oct 5 19:22:29 EDT 2009


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
>


More information about the Ironruby-core mailing list