Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 pseudo-declaring functions/procedures
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Saad85




PostPosted: 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)
Sponsor
Sponsor
Sponsor
sponsor
Clayton




PostPosted: 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.
Saad85




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: