Computer Science Canada

Calling a new procedure within a procedure??

Author:  Archi [ Sat Jun 21, 2003 11:52 pm ]
Post subject:  Calling a new procedure within a procedure??

How can I call a new procedure while currently in a procedure?

Author:  krishon [ Sun Jun 22, 2003 10:31 am ]
Post subject: 

um...just do it normally...write out the procedure at the top and then call it..u just need to order them correctly, otherwise it won't work

Author:  Mephi [ Sun Jun 22, 2003 1:38 pm ]
Post subject: 

yea make sure the one being called is before the one calling it

Author:  Andy [ Mon Jun 23, 2003 3:41 pm ]
Post subject: 

ya turing's gay, it won't let u call on a proc unless its defined before the section where u activate it

Author:  Catalyst [ Mon Jun 23, 2003 3:46 pm ]
Post subject: 

theres always forwards as in

code:
forward proc One (x:int)

...

body proc One (x:int)
put x
end One

Author:  Andy [ Mon Jun 23, 2003 3:48 pm ]
Post subject: 

whoa cool, thnx catalyst

Author:  AsianSensation [ Mon Jun 23, 2003 3:51 pm ]
Post subject: 

whoa..... Shocked didn't know turing could do that, thought only c++ could.....man, this could be so useful for my game.....

anyways, thanks catalyst

Author:  Andy [ Mon Jun 23, 2003 4:00 pm ]
Post subject: 

ya u could've made ur mario worms way better... but oh well its still good


: