Hello all.
After using mirah for a day or two, I have a few comments/questions/
concerns if anybody has any answers for me :)
1) using $Override seems to do nothing? Bug-report worthy?
2) if I say
class X
Implements Y
end
it doesn't seem to check that it actually ends up implementing Y (is
there a issue filed on that somewhere?)
3) no for loops--is this expected, since ruby doesn't have any?
4) calling super in classes that inherit from java classes doesn't
seem to work [1] I assume bug?
5) auto-generated hashcode and toString methods. This might be
convenient [could just iterate over local variables or what not] :)
6) methods that end in ? or ! (or << method)
7) symbols at all [should they just be strings or something?]
Oops forgot the link:
import java.util.ArrayList;
class yo extends ArrayList {
yo(java.util.List o) {
super();
}
}
compiles, but this mirah:
import java.util.ArrayList
class A < ArrayList
def initialize(o:java.util.List)
super
end
end
does not:
...
Mirah::InternalCompilerError: No constructor
java.util.ArrayList(Type(java.util.List))
>> 7) symbols at all [should they just be strings or something?]
>
> Symbols are just strings.
$ mirah -e "a = :a_symbol"
Inference Error:
DashE:1: Cannot find class a_symbol
Thanks!
-r
-roger-
I assume mirah "should" call .equals when comparing objects, by
default...unless that is deemed too mungey or what not, I think that
is almost always what people want/mean.
-roger-
--
S pozdravem, Regards
Michal Hantl
tel: +420 777 812 167
gtalk: michal...@gmail.com
skype: michal.hantl
if(this == them) return true;
~~ Robert.
For loop seems very un-ruby like ad counter expressive to me.
--
That's true for loop is not very ruby-esque.
Range don't seem to work for some reason. I ended up using a while
loop which...at least it worked :)
-roger-