-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
>
&
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
: 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.
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
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
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
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
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.
>
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
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
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
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
12 matches
Mail list logo