
-----------------------------------
appling
Sat Nov 15, 2003 5:26 pm

a procedure
-----------------------------------
can a procedure be in another procedure??how can i do that?
like:
procedure a
     procedure b
        ......
     end b
     .....
     b
     ....
end a

-----------------------------------
Tony
Sat Nov 15, 2003 5:30 pm


-----------------------------------
you can't declear a procedure inside another procedure :? That just doesnt make sence. What you do is

procedure b
...
end b

proceduer a
...
b
..
end a


Just got to make sure that procedure b comes before a in this case.

-----------------------------------
appling
Sat Nov 15, 2003 5:35 pm


-----------------------------------
so, only the procedure behind can be used in the after one...
right?

-----------------------------------
Tony
Sat Nov 15, 2003 5:43 pm


-----------------------------------
exactly. Though that might cause problems if you have a bunch of difference procedures, each using each other in such a way that you can't organize them to work :x though that's probably just bad program design

-----------------------------------
appling
Sat Nov 15, 2003 5:43 pm


-----------------------------------
thanks i get it

-----------------------------------
AsianSensation
Sat Nov 15, 2003 5:45 pm


-----------------------------------
actually, there exist function prototype in turing, just do this

forward procedure a
forward procedure b

body a
b
end a

body b
a
end b

and it works.

-----------------------------------
Tony
Sat Nov 15, 2003 5:49 pm


-----------------------------------
awesome 8) just like in C++ :lol:
