Mintoris Forum

Author Topic: Is "Global" statement really necessary in variable declaration?  (Read 1694 times)

FabianClub

  • Full Member
  • ***
  • Posts: 78
I'm programming a game  that has many subroutines, and in these I use the main program variables.
For that reason, I had to precede all the variables of the Global command.
At this point, it looks like the mandatory command of the basic Spectrum "LET".
I think that general-purpose variables are more necessary in all subroutines, while local variables are less frequent.
I think it would be more useful if by default all variables are in general use (and do without the Global command) and only use a command in cases where a local usage variable is needed (eg "Local A=5")
Chuck, I'm just telling you my experience, you're the one who decides whether to serve the suggestions or not.
« Last Edit: Jun 12, 2017, 10:47 PM by FabianClub »