On Thu, 22 Sep 2011, Sven Schreiber wrote:
I noticed that when you try to re-declare/define a variable which
already exists, you get an error if the new declaration/assignment has a
different type.
For example, after:
rez=5
it becomes illegal to say:
string rez = "whatever"
Not sure if that is intended, but I suspect it is. However, the error
message could maybe be more explicit? Currently it says "wrong datatype"
or something like that.
Yes, it is intended: you're not allowed to switch types in
mid-stream. I've now added a more specific error message for
such cases, in CVS.
Allin