S
Steven LeBeau
[Note: parts of this message were removed to make it a legal post.]
Hi,
I'm currently taking a beginning C++ class and learning Ruby on my own.
One thing I'm curious about (but don't have the vocabulary to articulate it
to a search engine, apparently) is if there's an equivalent to declaring
functions and then defining them later in the file so you don't have to
worry about where the function is in relation to another function that calls
it (or is called by it). In Ruby, I guess I'm talking about methods rather
than functions, but the same principle: is there a way for method x to call
method y (which appears later on in the program) by having declaration
statements at the top of your program? (I think that time my question may
have made more sense).
This wasn't addressed on the Ruby webpage on the "Ruby From C and C++" page
as being a "difference" or a "similarity".
-Steven
P.S.--I'm new. Hi!
Hi,
I'm currently taking a beginning C++ class and learning Ruby on my own.
One thing I'm curious about (but don't have the vocabulary to articulate it
to a search engine, apparently) is if there's an equivalent to declaring
functions and then defining them later in the file so you don't have to
worry about where the function is in relation to another function that calls
it (or is called by it). In Ruby, I guess I'm talking about methods rather
than functions, but the same principle: is there a way for method x to call
method y (which appears later on in the program) by having declaration
statements at the top of your program? (I think that time my question may
have made more sense).
This wasn't addressed on the Ruby webpage on the "Ruby From C and C++" page
as being a "difference" or a "similarity".
-Steven
P.S.--I'm new. Hi!