[Ironruby-core] Anyone interested in implementing Etc module for Mono?
ryan.riley at panesofglass.org
Sat Apr 3 17:30:47 EDT 2010
are returned from the
have UInt32, System.String, and System.String. System.String is
no biggie, and I'm finding .to_i on a System.UInt32 is still displayed as
System.UInt32, so I suppose that's not an issue, either. MRI displays Fixnum
as the type, and I was trying to get the correct types back from the
functions. That leaves MRI's Array to Mono's System.String.
My current implementation is just a Ruby module wrapping calls to the Mono
functions and returning the appropriate types. Most of it is working, though
without being able to run tests easily, I'm testing from the command line. I
still need to add conditionals to return nil if it's run on Windows. I
suppose I also need to conditionally load the Mono.Posix.dll if it's on
I'm about to finish the basic implementation and post to
already got what I finished last night up there.) I also asked Shri for a
pairing session to make sure it's inline with what you're wanting.
Email: ryan.riley at panesofglass.org
On Sat, Apr 3, 2010 at 11:25 AM, Tomas Matousek <
Tomas.Matousek at microsoft.com> wrote:
> Can you give an example of where you need the conversions?
> *From:* ironruby-core-bounces at rubyforge.org [mailto:
> ironruby-core-bounces at rubyforge.org] *On Behalf Of *Jim Deville
> *Sent:* Saturday, April 03, 2010 11:00 AM
> *To:* ironruby-core at rubyforge.org
> *Subject:* Re: [Ironruby-core] Anyone interested in implementing Etc
> module for Mono?
> No conversion for Fixnums is needed (Fixnums are ints). Arrays are harder.
> I would take a look at clr_ext in merlin/main/languages/ruby/samples. Inside
> that file is a to_clr_array method
> *From: *Ryan Riley <ryan.riley at panesofglass.org>
> *Sent: *Saturday, April 03, 2010 12:13 AM
> *To: *ironruby-core at rubyforge.org <ironruby-core at rubyforge.org>
> *Subject: *Re: [Ironruby-core] Anyone interested in implementing Etc
> module for Mono?
> Where is documentation on converting between CLR and Ruby types? I can get
> RubyStrings, but what about Fixnum and Array?
> Ryan Riley
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironruby-core