Re: [Ironruby-core] Fwd: WorkItem Issue #6095 - "IronRuby 1.1.3 Can't count"

2011-05-04 Thread Orion Edwards
> >I see two ways of fixing the bug, >> >> 1. removing the [RubyMethod("count")] declaration from >> IListOps.Length which would make count inefficent on IList's. >> 2. reimplementing the object and block variations of count in >> IListOps >> >> In my humble opinion, 1 would be best,

Re: [Ironruby-core] Fwd: WorkItem Issue #6095 - "IronRuby 1.1.3 Can't count"

2011-05-04 Thread Ryan Riley
On Wed, May 4, 2011 at 2:02 PM, Nicholas Radford wrote: > Hey all, > >I thought I'd look at issue #6095 on codeplex > (http://ironruby.codeplex.com/workitem/6095) as my first contribution. > >I see two ways of fixing the bug, > 1. removing the [RubyMethod("count")] declaration from

[Ironruby-core] Fwd: WorkItem Issue #6095 - "IronRuby 1.1.3 Can't count"

2011-05-04 Thread Nicholas Radford
Hey all,    I thought I'd look at issue #6095 on codeplex (http://ironruby.codeplex.com/workitem/6095) as my first contribution.    Having a dig through the code lead me to ArrayOps which then lead me IListOps in the IronRuby.Libraries project.    I noticed IListOps.Length had the [RubyMethod("c

Re: [Ironruby-core] How to acces the Application's control in Iron Ruby script

2011-05-04 Thread Eduardo Blumenfeld
Hi Sri, I assume that you are trying to work from a wpf application... in Ruby, variables that start in upper case are interpreted as constants... Did you try? list = self.FindName('MyListBox') list.ItemsSource = myObject (note the lower case names)... Regards, Eduardo Blumenfeld Sridharan