Re: [Ironruby-core] IronRuby for GIMP

2008-10-31 Thread Maurits Rijk
Curt Hagenlocher wrote: > Do you know that your script is being loaded at all? How are you Yes, I'm very sure. The IronRuby class uses the constructor of the base class, which has some print statements in it. > integrating with the extension model (which no doubt expects an > assembly)? I us

Re: [Ironruby-core] IronRuby for GIMP

2008-10-30 Thread Ted Milker
On Thu, Oct 30, 2008 at 10:12 AM, Curt Hagenlocher <[EMAIL PROTECTED]> wrote: > Finally, we're shortly going to change the naming policy for overrides of CLS > virtual methods. When this happens, you'll need to define > ProcedureEnumerator with the "rubified" method names: move_next, reset and

Re: [Ironruby-core] IronRuby for GIMP

2008-10-30 Thread Curt Hagenlocher
: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] IronRuby for GIMP Hi Curt, Curt Hagenlocher wrote: > "yield" doesn't do in Ruby what it does in C#. Ah, I wasn't aware of that. > You'll probably need to define your own enumerator class doing something &g

Re: [Ironruby-core] IronRuby for GIMP

2008-10-30 Thread Maurits Rijk
Hi Curt, Curt Hagenlocher wrote: > "yield" doesn't do in Ruby what it does in C#. Ah, I wasn't aware of that. > You'll probably need to define your own enumerator class doing something > like this: > def ListProcedure > ProcedureEnumerator.new(Procedure.new(...)) >end For some weird reason m

Re: [Ironruby-core] IronRuby for GIMP

2008-10-30 Thread Curt Hagenlocher
core@rubyforge.org Subject: Re: [Ironruby-core] IronRuby for GIMP Nice, the array conversion seems to work quite well. Right now I'm encountering the next problem. The Plugin base class (C#) has the follow signature: protected abstract IEnumerator ListProcedures(); How can I implement this in my

Re: [Ironruby-core] IronRuby for GIMP

2008-10-30 Thread Maurits Rijk
Nice, the array conversion seems to work quite well. Right now I'm encountering the next problem. The Plugin base class (C#) has the follow signature: protected abstract IEnumerator ListProcedures(); How can I implement this in my IronRuby derived class? Of course I tried something like: def

Re: [Ironruby-core] IronRuby for GIMP

2008-10-30 Thread Michael Letterle
sday, October 29, 2008 4:04 PM > To: ironruby-core@rubyforge.org > Subject: Re: [Ironruby-core] IronRuby for GIMP > > Did anyone ever help you with this? > > -Original Message- > From: [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] On Behalf Of Maurits Rijk > Sent: M

Re: [Ironruby-core] IronRuby for GIMP

2008-10-30 Thread Maurits Rijk
Thanks! I'm still a bit surprised that one has to do the conversion explicitly. I would expect that either IronRuby uses CLR arrays (and strings) or would do the conversion implicitly for me. But as I said in my previous mail, I'm new to IronRuby and probably missing a whole bunch of design de

Re: [Ironruby-core] IronRuby for GIMP

2008-10-29 Thread Tomas Matousek
] [mailto:[EMAIL PROTECTED] On Behalf Of Jim Deville Sent: Wednesday, October 29, 2008 4:04 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] IronRuby for GIMP Did anyone ever help you with this? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf

Re: [Ironruby-core] IronRuby for GIMP

2008-10-29 Thread Jim Deville
Did anyone ever help you with this? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Maurits Rijk Sent: Monday, October 27, 2008 8:44 AM To: ironruby-core@rubyforge.org Subject: [Ironruby-core] IronRuby for GIMP I'm completely new at IronRuby and I t

[Ironruby-core] IronRuby for GIMP

2008-10-27 Thread Maurits Rijk
I'm completely new at IronRuby and I try to use it for writing GIMP plug-ins, using my GIMP# library (http://sourceforge.net/projects/gimp-sharp/). I have hacked up the following code: require "../../lib/gimp-sharp" require "mscorlib" class RubySample < Gimp::Plugin def initialize(args) s