Re: [Ironruby-core] Lowercase classname

2010-11-20 Thread Tinco Andringa
boun...@rubyforge.org > [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Tinco Andringa > Sent: Saturday, November 20, 2010 2:27 PM > To: ironruby-core > Subject: Re: [Ironruby-core] Lowercase classname > > Hey guys.. it's very nice that you all say the same th

Re: [Ironruby-core] Lowercase classname

2010-11-20 Thread Tinco Andringa
he assembly that defines the class you are trying to >> use? >> >> Tomas >> >> -Original Message- >> From: ironruby-core-boun...@rubyforge.org >> [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Tinco Andringa >> Sent: Saturday, N

Re: [Ironruby-core] Lowercase classname

2010-11-20 Thread Tomas Matousek
Subject: Re: [Ironruby-core] Lowercase classname Hey guys.. it's very nice that you all say the same thing, but it doesn't work in IronRuby 1.1.1: >>> Object.const_get "foo" (ir):1:in `const_get': `foo' is not allowed as a constant name (NameError) from

Re: [Ironruby-core] Lowercase classname

2010-11-20 Thread Tinco Andringa
Hey guys.. it's very nice that you all say the same thing, but it doesn't work in IronRuby 1.1.1: >>> Object.const_get "foo" (ir):1:in `const_get': `foo' is not allowed as a constant name (NameError) from (ir):1 If this would've worked then I wouldn't have had to ask the question in the f

Re: [Ironruby-core] Lowercase classname

2010-11-19 Thread Shay Friedman
Ruby can do crazy stuff but it doesn't support one thing that C# does - camelCase names for classes and modules (because they're eventually constants). It just can't be done. Taking this into consideration, what name would you expect a camelCased C# class name get in IronRuby? its PascalCased form?

Re: [Ironruby-core] Lowercase classname

2010-11-19 Thread Mike Moore
For some reason Jimmy's reply didn't show up in my inbox until I sent my reply. Sorry for the duplicate explanation. On Fri, Nov 19, 2010 at 9:00 AM, Jimmy Schementi wrote: > Andrew, > > Not sure I follow. IronRuby does support this via DotNetClassName = > Object.const_get("lower_case_dotnet_clas

Re: [Ironruby-core] Lowercase classname

2010-11-19 Thread Mike Moore
I disagree. You don't need to be able to modify the .NET source code to get this to work. You can use Ruby to make Ruby happy. The reason for the friction is because .NET != Ruby. When you create a class in Ruby, you are actually creating an object that inherits from Class, and then you are creatin

Re: [Ironruby-core] Lowercase classname

2010-11-19 Thread Jimmy Schementi
Andrew, Not sure I follow. IronRuby does support this via DotNetClassName = Object.const_get("lower_case_dotnet_class_name"), so you don't need to change your code. This is an issue because of Ruby itself; classes are required to be Ruby constants, which syntactically can only start with an upper-

Re: [Ironruby-core] Lowercase classname

2010-11-19 Thread Andrius Bentkus
On Fri, Nov 19, 2010 at 4:48 PM, andrew Wilson wrote: > This is only an acceptable solution if the user has the source code and is > capable of modifying it. For how I test things with Why? Just use 'LowerCase = get_const("lowerCase")'. Actually I don't understand why one would code C# using c

Re: [Ironruby-core] Lowercase classname

2010-11-19 Thread andrew Wilson
This is only an acceptable solution if the user has the source code and is capable of modifying it. For how I test things with IronRuby, this isn't always possible. Seems odd to me that one of the most flexible language I know of can't read/integrate with another language due to code not followin

Re: [Ironruby-core] Lowercase classname

2010-11-19 Thread Andrius Bentkus
On Fri, Nov 19, 2010 at 2:41 PM, Shay Friedman wrote: > Look here: > http://www.ironshay.com/post/Working-with-NET-Lowercase-Namespaces-and-Classes-in-IronRuby.aspx > > Shay. > Excellent solution. I

Re: [Ironruby-core] Lowercase classname

2010-11-19 Thread Shay Friedman
. > > > > Tomas > > > > -Original Message- > > From: ironruby-core-boun...@rubyforge.org [mailto: > ironruby-core-boun...@rubyforge.org] On Behalf Of Tinco Andringa > > Sent: Thursday, November 18, 2010 3:01 PM > > To: ironruby-core@rubyforge.org > >

Re: [Ironruby-core] Lowercase classname

2010-11-19 Thread Tinco Andringa
: ironruby-core-boun...@rubyforge.org > [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Tinco Andringa > Sent: Thursday, November 18, 2010 3:01 PM > To: ironruby-core@rubyforge.org > Subject: Re: [Ironruby-core] Lowercase classname > > Hmm I've found the documentation for

Re: [Ironruby-core] Lowercase classname

2010-11-18 Thread Tomas Matousek
...@rubyforge.org] On Behalf Of Tinco Andringa Sent: Thursday, November 18, 2010 3:01 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Lowercase classname Hmm I've found the documentation for IronRuby now :P It says class names should automatically be capitalized. This however

Re: [Ironruby-core] Lowercase classname

2010-11-18 Thread Tinco Andringa
Hmm I've found the documentation for IronRuby now :P It says class names should automatically be capitalized. This however seems not to have happened since it plainly isn't available. I have worked around the issue by renaming it in the source, but this forces me to ship precompiled dll's instead o

[Ironruby-core] Lowercase classname

2010-11-18 Thread Tinco Andringa
Hey guys, I'm using IronRuby to interface with a clr library. There is a small problem however: It has one class that does not start with a capital letter. This causes IronRuby to just not see the class since ruby does not support lowercase constantnames. Does anyone know if it's possible to work