[fpc-devel] Suggestion for change: Overly strict check

Christian Iversen chrivers at iversen-net.dk
Tue Oct 3 01:08:35 CEST 2006


On Monday 02 October 2006 19:20, Micha Nelissen wrote:
> 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 ;-).

I think I might have misunderstood Ales's argument :)

-- 
Regards,
Christian Iversen



More information about the fpc-devel mailing list