Computer Science Canada

pseudo-declaring functions/procedures

Author:  Saad85 [ 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)

Author:  Clayton [ 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.

Author:  Saad85 [ 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.


: