Computer Science Canada

Turing Calling Procedures.

Author:  xboxdude_6262 [ 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.

Author:  Zren [ 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


: