Computer Science Canada

Can you make a procedure with procedures in it?

Author:  Vivi1212 [ Wed Jan 21, 2004 6:23 pm ]
Post subject:  Can you make a procedure with procedures in it?

i am trying to make a procedure witha procedure in it, is it possible or do i need to make it a process with procedures in it or am i just trying to attampt to do something Turing cant do again?

sorry to bother you guys again, but thanks for the help Very Happy

Author:  shorthair [ Wed Jan 21, 2004 6:24 pm ]
Post subject: 

you should never need to make a procedure in a procedure , and i do not belive it is possible , in fact i know its not possible ,let us know what your trying to do , mabye i can help you out

Author:  sport [ Wed Jan 21, 2004 6:38 pm ]
Post subject: 

You can not make a procedure inside a procedure, but you can call a procedure inside a procedure. Here is an example
code:

proc hello
    put "Hello"
end hello

proc how_are_you
    put "How are you?"
end how_are_you

proc Put
    hello
    how_are_you
end Put
Put

Author:  Vivi1212 [ Wed Jan 21, 2004 7:16 pm ]
Post subject: 

giggity giggity, thanks sport, i asked my comp sci teach the same question he said "yeah you can make a proc withing a proc" then i tried at home while working on my project....and it wouldnt work. Man, you guys are awesome at what you do

Author:  Cervantes [ Thu Jan 22, 2004 6:38 pm ]
Post subject: 

if you could make a proc within a proc, how oh how would you call it?? Razz

Author:  AsianSensation [ Thu Jan 22, 2004 7:46 pm ]
Post subject: 

you can't make a proc in a proc, but you can make a proc in a module or a class and export it.

Author:  Andy [ Thu Jan 22, 2004 7:52 pm ]
Post subject: 

yea do classes


: