Hi, I'm switching from C++ to Ruby, I have a few questions.

1. How come there isn't any "method prototype" feature like the function
prototypes in C++? Like, in c++ I declared just the name of a funcion at
the beginning of a block of code and then I could put the function
anywhere in the program, so it could be called wherever, without
worrying if it had been fully declared or not. Is this possible?

2. I find it awesome that you needn't compile to view the results of
your code; still, i would like to be able to compile my programs to an
executable file for distribution. Is it possible?

3. I still don't get how this whole "gems" thing work. In C++ I used to
load libraries, it seems that in Ruby most of the libraries are loaded
by themselves when needed. When exactly do I need to include other
libraries?
-- 
Posted via http://www.ruby-forum.com/.