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? and what if there are two
classes in the C# assembly, one named camelCase and the second CamelCase -
totally legit in C#... what would you expect to happen then?

It's a problematic situation and I think IronRuby goes with the right
solution here.

Shay.


On Fri, Nov 19, 2010 at 6:05 PM, Andrius Bentkus
<andrius.bent...@gmail.com>wrote:

> On Fri, Nov 19, 2010 at 4:48 PM, andrew Wilson <a.wilso...@gmail.com>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 camelStyle. The
> standard is CamelStyle.
>
>
>>  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 following a rigid structure.
>
>
> The fact that it is dynamic does not implicate that IronRuby should be able
> to read all kind of crazy naming styles, it should implicate the you could
> modify it to your needs with minimum amount of coding, just add something
> like this before you use that library in ruby:
>
> modul.constants.each do |const|
>     eval "#{const.uppercase} = modul.const_get(const)"
> end
>
> This is only semi-pseudocode, but you should get the idea.
>
> Doesn't IronPython allow for this?  I was fairly sure I could import
>> non-standard .Net convention based code into it.
>>
>
> True or False.
>
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core@rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
>
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to