[Ironruby-core] SQLite3 support

2009-08-04 Thread Philippe Monnet
I can't seem to get sqlite3-ruby to work with IronRuby (can't load the driver even though I have copied the sqlite3.* files to the bin folder of IronRuby - like I had done in the past for Ruby). Looking in emails from last year, it seems that Brian Blackwell was experimenting with changes to su

Re: [Ironruby-core] Getting a delegate in IronRuby

2009-08-04 Thread Martin Smith
Thanks Ivan. Actually, I didn't know this. I'm kind of learning Ruby generally as I embed it into my app. I'm super familiar with .NET and the CLR and all it's workings, but far less-so with ruby. Thanks for the help Martin On Tue, Aug 4, 2009 at 4:43 PM, Ivan Porto Carrero wrote: > Out of c

Re: [Ironruby-core] Getting a delegate in IronRuby

2009-08-04 Thread Ivan Porto Carrero
Out of curiosity why, for C# to consume? Ruby doesn't have an event syntax, it's an add-on for CLR interop. In Ruby you would probably want to use an observable implementation and you could, if you want to do so, add the add_event_handler and remove_event_handler methods. You probably know this al

Re: [Ironruby-core] Getting a delegate in IronRuby

2009-08-04 Thread Tomas Matousek
We don't support declaring CLR events in Ruby. Tomas From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Martin Smith Sent: Tuesday, August 04, 2009 4:22 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Getting a delegate in IronRuby

Re: [Ironruby-core] Getting a delegate in IronRuby

2009-08-04 Thread Martin Smith
Thanks. Part of this question was also about returning and creating RubyEvent objects. Is there a way to declare an event on the ruby side without a "RubyEvent" object? Thanks, Martin On Tue, Aug 4, 2009 at 12:39 PM, Tomas Matousek < tomas.matou...@microsoft.com> wrote: > BTW: > > > > Instead

[Ironruby-core] Code Review: OperatorMapping

2009-08-04 Thread Tomas Matousek
tfpt review "/shelveset:OperatorMapping;REDMOND\tomat" Comment : Disables operator mapping for built-ins. Fixes bugs: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1679 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1082 Tomas OperatorMapping.diff Descripti

Re: [Ironruby-core] Getting a delegate in IronRuby

2009-08-04 Thread Tomas Matousek
BTW: Instead of using Reflection click_event = button.GetType.get_event("Click") on_click = EventHandler.new { |sender, e| puts "Click!" } click_event.add_event_handler(button, on_click) you can do handler = lambda { |sender, e| puts "Click!" } button.on_click.add handler button.on_click.remove

Re: [Ironruby-core] Getting a delegate in IronRuby

2009-08-04 Thread Jimmy Schementi
I believe that commit is the one that didn't get into the binary build of 0.9.0, but is (strange enough) tagged with 0.9 in GitHub. Thanks for pointing that out though. From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Martin Smith Sent: Tuesday

Re: [Ironruby-core] Getting a delegate in IronRuby

2009-08-04 Thread Martin Smith
Thank you all for your suggestions. They've been most helpful. I think i've mostly wrapped my head around event handlers. Here's one last question. What's the best way to test if a given object is an event? Obviously the way below: (object.GetType.get_event("EventName") != nil) is one way, but is

Re: [Ironruby-core] IronRubyInline

2009-08-04 Thread Ray Vernagus
Thanks, Shri! I'm familiar with the RubyInline project and I do plan to look at possibly merging some of what I'm doing into RubyInline. I'd like IronRubyInline to be based on the .NET CodeDom model which may lead into some interesting directions that aren't possible in RubyInline. That said, you c

[Ironruby-core] IronRubyInline

2009-08-04 Thread Shri Borde
Pretty cool! I have added a link from http://ironruby.net/Documentation/Related_projects. Have you looked at http://www.zenspider.com/ZSS/Products/RubyInline/ which allows you to embed C/C++/Java/ into the body of Ruby classes? Its different than IronRubyInline which lets you have standalone C#

[Ironruby-core] Code Review: Thread priority

2009-08-04 Thread Pascal Normandin
Modification to be able to set and read the priority of a thread. Main commit: http://github.com/PascalN2/ironruby/commit/3a0373379b79dbe7fff603ad61ab726d7 de7f305 Small modification for coding standard: http://github.com/PascalN2/ironruby/commit/47f0de87e908981f553732e97f948a33b 164f202