Re: [Ironruby-core] Lowercase classname

2010-11-19 Thread Tinco Andringa
Hey Tomas, Thanks for the reply. const_get :foo also raises the constants should begin with an uppercase letter error :) Object.const_get :foo (ir):1:in `const_get': `foo' is not allowed as a constant name (NameError) from (ir):1 Cheers, Tinco On Fri, Nov 19, 2010 at 00:32, Tomas Matous

Re: [Ironruby-core] Lowercase classname

2010-11-19 Thread Shay Friedman
Look here: http://www.ironshay.com/post/Working-with-NET-Lowercase-Namespaces-and-Classes-in-IronRuby.aspx Shay. On Fri, Nov 19, 2010 at 3:34 PM, Tinco Andringa wrote: > Hey Tomas, > > Thanks for t

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 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 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 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 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 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 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?