next up previous
Next: Type casting Up: Advanced use of gp2c Previous: gp2c types

Type declaration

To declare a variable as belonging to type type use:
function(x:type,y:type=2)
or
local(x:type, y:type=2) or even
for(i:type=...
since in GP loop indices are local to the loop.



Bill Allombert 2005-01-11