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

Username:   Password: 
 RegisterRegister   
 Can you make a procedure with procedures in it?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Vivi1212




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




PostPosted: Wed Jan 21, 2004 6:24 pm   Post subject: (No 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
sport




PostPosted: Wed Jan 21, 2004 6:38 pm   Post subject: (No 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
Vivi1212




PostPosted: Wed Jan 21, 2004 7:16 pm   Post subject: (No 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
Cervantes




PostPosted: Thu Jan 22, 2004 6:38 pm   Post subject: (No subject)

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




PostPosted: Thu Jan 22, 2004 7:46 pm   Post subject: (No 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.
Andy




PostPosted: Thu Jan 22, 2004 7:52 pm   Post subject: (No subject)

yea do classes
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  [ 7 Posts ]
Jump to:   


Style:  
Search: