Logan Barnett wrote:
Is the compiler executing this script instead of running it then? All
the requires go through, mixins are applied, etc, right?
That is correct! And the resulting class, as part of its static
initialization, requires the same file you compile with. So if you tell
the compi
On Mar 12, 2009, at 9:11 PM, Charles Oliver Nutter wrote:
I have committed another round of work on compiler2, and it now
supports signatures. Here's an example:
require 'rbconfig'
require 'java'
require 'tool/signature'
class MyRubyClass
def helloWorld
puts "Hello from Ruby"
end
def
Also blogged here:
http://blog.headius.com/2009/03/more-compiling-ruby-to-java-types.html
Charles Oliver Nutter wrote:
I have committed another round of work on compiler2, and it now supports
signatures. Here's an example:
require 'rbconfig'
require 'java'
require 'tool/signature'
class MyRu
I have committed another round of work on compiler2, and it now supports
signatures. Here's an example:
require 'rbconfig'
require 'java'
require 'tool/signature'
class MyRubyClass
def helloWorld
puts "Hello from Ruby"
end
def goodbyeWorld(a)
puts a
end
%w[boolean byte short c