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

Username:   Password: 
 RegisterRegister   
 Turing Calling Procedures.
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
xboxdude_6262




PostPosted: Tue Jun 16, 2015 2:11 pm   Post subject: Turing Calling Procedures.

Hi yall i got a simple question. i have a start game button using gui (thats all i know how to do) and when you it uses a procedure to bring you to the section of the came and the hole game is basically a proc. I need to have another proc within that proc but it doesnt work. Does anyone know a way to by pass this? if not i will have to scrap the whole gui part.
Sponsor
Sponsor
Sponsor
sponsor
Zren




PostPosted: Tue Jun 16, 2015 2:22 pm   Post subject: RE:Turing Calling Procedures.

You cannot define a procedure inside another procedure (in Turing). You have to define it before the procedure you want to call it from.

Turing:

proc a()
end a

proc b()
    a()
end b

% Init GUI
% GUI.____Button(..., b)

% GUI loop
loop
    exit when GUI.ProcessEvent()
end loop
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  [ 2 Posts ]
Jump to:   


Style:  
Search: