On Wed, Jan 7, 2009 at 7:29 PM, Mike Evans (Gmail) <makis1...@gmail.com> wrote:

> The right fix is to delete every nvar in your function (as far as I can
> understand), but in general if you remove the assignment it will be nice if
> the compiler return an error that you are making a concatenation -
> calculation on a non initialized variable. I think that something like that
> it will be nice as we will have a lot less runtime errors due to bad coding.

This code is valid:

function main
local nVar := 0
nVar++
return nVar

because nVar is used "after" the nVar++ so if a warning has to be
issued it should point to nVar++ not local nVar := 0. Note that after
deleting nVar++ local nVar := 0 become useless also.

best regards,
Lorenzo
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to