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
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to