add some kind of support for classes with lowercase names #190

Closed
baroquebobcat opened this Issue Sep 6, 2012 · 2 comments

Comments

Projects
None yet
2 participants
Owner

baroquebobcat commented Sep 6, 2012

class names in Mirah are constants like in Ruby, but that means they have to start with a capital letter. Java doesn't have that requirement, and strangely enough some Java libs do have lowercase class names. Mirah needs a way to deal with that.

In JRuby we do include_class 'com.bar.foo' { 'Foo' } or something like that. Maybe we could do something like import com.bar.foo as Foo?

Contributor

ribrdb commented Sep 6, 2012

Import com.bar.foo as Foo should work.

Sent from my phone.
On Sep 5, 2012 9:18 PM, "Nick Howard" notifications@github.com wrote:

class names in Mirah are constants like in Ruby, but that means they have
to start with a capital letter. Java doesn't have that requirement, and
strangely enough some Java libs do have lowercase class names. Mirah needs
a way to deal with that.

In JRuby we do include_class 'com.bar.foo' { 'Foo' } or something like
that. Maybe we could do something like import com.bar.foo as Foo?


Reply to this email directly or view it on GitHubhttps://github.com/mirah/mirah/issues/190.

abscondment referenced this issue in mirah/pindah Feb 15, 2013

Closed

Compile exception: API 4.2 #37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment