mirah/mirah — Issue #153: int() long() etc should generate code for Integer, Long, etc
Author: baroquebobcat
Created: 2011-10-19 18:59:43+00:00
State: open

It'd be nice if you could do

```mirah

list =[1,2,3]
list.each do |x|
puts int(x) * 2
end
```

currently you'd have to

```mirah

list =[1,2,3]
list.each do |x|
puts Integer(x).intValue * 2
end
```

One place you could do it is here https://github.com/mirah/mirah/blob/master/lib/mirah/jvm/compiler/jvm_bytecode.rb#L400

but that might not be the right layer of abstraction.