pseudo-declaring functions/procedures
Author |
Message |
Saad85
|
Posted: Fri Feb 02, 2007 9:25 pm Post subject: pseudo-declaring functions/procedures |
|
|
is there any way to make turing recognize a procedure without actually making the whole thing? what i mean is, is it possible to just declare that the procedure will exist, then define it later? i need this because i have a procedure that needs to call another procedure that is further down in the code.
(no, i can't just change their positions) |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Clayton
![](http://compsci.ca/v3/uploads/user_avatars/1718239683472e5c8d7e617.jpg)
|
Posted: Fri Feb 02, 2007 9:55 pm Post subject: Re: pseudo-declaring functions/procedures |
|
|
look into forwarding procedures and functions. What you are talking about is mutual recursion. |
|
|
|
|
![](images/spacer.gif) |
Saad85
|
Posted: Fri Feb 02, 2007 10:08 pm Post subject: RE:pseudo-declaring functions/procedures |
|
|
thank you very, very much. i knew it existed but didn't know the name for it! if i could give your sex over the internet.. well, i probably wouldn't do it, but i'm still thankful. |
|
|
|
|
![](images/spacer.gif) |
|
|