Spectrum Basic Variables

Post Reply
derek
Posts: 12
Joined: Fri Jan 23, 2015 11:31 am

Spectrum Basic Variables

Post by derek » Sat Aug 11, 2018 10:01 am

Hi,

I have been reading some Spectrum Basic programming books, I was wondering if a variable can have the same name as an array, i.e.

LET score=0

and

DIM score(50)

Both seem to be allowed by the Spectrum Basic interpreter, but clearly bad programming practise to have an array the same name as a variable.
Regards,

Derek

Post Reply