On 2010-11-12 14:13:49 -0500, x <lucian_pata (AT) yahoo (DOT) com> said:
Quote:
No, I was thinking along these lines.
Either:
1) making BASIC even more lax by ignoring the unassigned variable
altogether because of its limited benefits |
This solves no real problem and introduces potentially serious ones as
already described. All you do here is perhaps reduce the minimal
amount of work sometimes required by the programmer to assign a value
to a varialbe.
Quote:
2) making BASIC more precise (not restrictive) by generating error
messages when you have something like:
A = 22 <--- numeric assignment
A = A:"0" <--- string assignment
Instead you would have to write:
A = "22" <--- string assignment
A = A:"0" |
Now this just makes MV BASIC unnecessarily cumbersome. Again, what
terrible real world problem does this solve?
Also, consider that much MV processing is reading record values from
files. So, if the record TEMP.CELSIUS contains 22 in attribute # 1, how
would your system work considering the following:
READV TEMPERATURE FROM MYFILE,'TEMP.CELSIUS',1 THEN
CRT "The temperature is ":TEMPERATURE:" degrees Celsius"
TEMPERATURE = (1.8 * TEMPERATURE) + 32
CRT "The temperature is ":TEMPERATURE:" degrees Fahrenheit"
END
--
Kevin Powick