Re: [Ironruby-core] Lower case namespace

2010-05-08 Thread Claudio Maccari
-core-boun...@rubyforge.org] *On Behalf Of *Claudio Maccari > *Sent:* Thursday, May 06, 2010 12:22 AM > *To:* ironruby-core@rubyforge.org > *Subject:* Re: [Ironruby-core] Lower case namespace > > > > Hi Ivan, > > > > thank you for you prompt reply > &

Re: [Ironruby-core] Lower case namespace

2010-05-06 Thread Tomas Matousek
nruby-core@rubyforge.org Subject: Re: [Ironruby-core] Lower case namespace But this assembly has no types inside right ? On Thu, May 6, 2010 at 8:55 AM, Shay Friedman mailto:shay.fried...@gmail.com>> wrote: I can think of a workaround (never checked it though) - create a C# assembly that

Re: [Ironruby-core] Lower case namespace

2010-05-06 Thread Tomas Matousek
: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Claudio Maccari Sent: Thursday, May 06, 2010 12:22 AM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Lower case namespace Hi Ivan, thank you for you prompt reply Now my code is require "devDept.

Re: [Ironruby-core] Lower case namespace

2010-05-06 Thread Claudio Maccari
Does anyone know if IronPython use the same convention? Will I have the same issue if I convert my ruby code to python ? Thks makka On Thu, May 6, 2010 at 5:46 PM, Claudio Maccari wrote: > The aliasing doesn't work or I missed something :( > > > On Thu, May 6, 2010 at 12:50 PM, Ivan Porto Carrer

Re: [Ironruby-core] Lower case namespace

2010-05-06 Thread Claudio Maccari
The aliasing doesn't work or I missed something :( On Thu, May 6, 2010 at 12:50 PM, Ivan Porto Carrero wrote: > you can use .NET reflection still > the assembly is loaded but you can also interrogate it and get the types > you need out and instantiate them that way. > Not ideal but still worth a

Re: [Ironruby-core] Lower case namespace

2010-05-06 Thread Ivan Porto Carrero
you can use .NET reflection still the assembly is loaded but you can also interrogate it and get the types you need out and instantiate them that way. Not ideal but still worth a shot. The aliasing won't work I guess because that works at an assembly level, but if it does it's good to know :) Iro

Re: [Ironruby-core] Lower case namespace

2010-05-06 Thread Shay Friedman
Right, no types, only an alias for the problematic namespace.I haven't checked that though. Let us know if you find a solution. Shay. Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby Unleashed Blog: http://IronShay.com

Re: [Ironruby-core] Lower case namespace

2010-05-06 Thread Claudio Maccari
But this assembly has no types inside right ? On Thu, May 6, 2010 at 8:55 AM, Shay Friedman wrote: > I can think of a workaround (never checked it though) - create a C# > assembly that adds a name alias to the assembly: > > using DevDept = devDept; > > and then require this assembly. > > Shay. >

Re: [Ironruby-core] Lower case namespace

2010-05-06 Thread Claudio Maccari
Hi Ivan, thank you for you prompt reply Now my code is require "devDept.EyeshotUltimate" Geometry = Object.const_get("devDept::Geometry") include Geometry o = Point3D.Origin puts o.x puts o.y puts o.z When I run it I get this error: C:\Users\cmaccari\Desktop\ironruby-1.0\bin>ir devDept.rb devDe

Re: [Ironruby-core] Lower case namespace

2010-05-05 Thread Shay Friedman
I can think of a workaround (never checked it though) - create a C# assembly that adds a name alias to the assembly: using DevDept = devDept; and then require this assembly. Shay. Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author o

Re: [Ironruby-core] Lower case namespace

2010-05-05 Thread Ivan Porto Carrero
you could try with: Geometry = Object.const_get("devDept::Geometry") include Geometry I haven't tried if this actually works though --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Web: http://whiterabbitconsulting.eu - http://flanders.co.nz Twitter: http://twitter.co

[Ironruby-core] Lower case namespace

2010-05-05 Thread Claudio Maccari
Hy all, I'm trying to use a 3rd party library into my app via IronRuby Unfortunately the root namespace of this library is lower case and I believe this cause some problem This is the sample code I wish to run require "devDept.EyeshotUltimate" include devDept::Geometry o = Point3D.Origin puts o.x