[fpc-devel] Suggestion for change: Overly strict check
Micha Nelissen
micha at neli.hopto.org
Mon Oct 2 19:20:07 CEST 2006
Christian Iversen wrote:
>> procedure TTest.DoWithFirst(a, First: Integer);
>> begin
>> First:=a; // ???
>> FSomething:=First; // ???
>> end;
>
> Ales, there is _no_ confusion here. Normal scope rules ensures that the first
> line only assigns the param "a" to the param "first". There are no other ways
> to interpret that.
This is a weak argument. Suppose this were not true, then the language
would be ambiguous (or the semantics undefined)! That would be really
really bad. And people are not robots you know, following, knowing and
applying rules like an exact grammatical rulebook ;-).
Micha
More information about the fpc-devel
mailing list