Computer Science Canada

Returning variables with processes

Author:  haujobb [ Thu Mar 27, 2003 11:51 am ]
Post subject:  Returning variables with processes

Is it possible to return a variable using a process? In the game I'm programming a process determines a variable and another part of the game reads the value of that variable but when it gets to that points it drops out saying that variable has no value...

any ideas?

Author:  Blade [ Thu Mar 27, 2003 11:53 am ]
Post subject: 

you could assign the variable in the process to a main variable that you declare in the main program

Author:  Catalyst [ Thu Mar 27, 2003 4:14 pm ]
Post subject: 

u could call it by reference

Author:  haujobb [ Thu Mar 27, 2003 9:16 pm ]
Post subject: 

Thanx for helping but could you elaborate please Very Happy

Author:  Blade [ Thu Mar 27, 2003 9:25 pm ]
Post subject: 

if you meant me... then i meant.. if you declare a variable outside of the process then you can assign the value of the variable inside of the process to that external one... as for what catalyst is talking about.. i dont know, cuz i'm new at this too (only 2 months)

Author:  Catalyst [ Thu Mar 27, 2003 9:36 pm ]
Post subject: 

just checked, turing doesnt let processes call by-reference so just ignore my reply


: