[fpc-devel] Suggestion for change: Overly strict check
Chris Cheney
C.J.Cheney at ucs.cam.ac.uk
Mon Oct 2 11:26:09 CEST 2006
> On Monday 02 October 2006 10:40, Vincent Snijders wrote:
> > Chris Cheney schreef:
> > > C'est magnifique, mais ce n'est pas la guerre.
> > >
> > > Two Very Bad Things:
> > >
> > > * The restriction increases the context sensitivity of the language.
> >
> > What do you mean? It thought it reduces the context sensitivity, because
> > the context is less important to determine what a identifier means. But
> > maybe I missed your point.
>
> I'm pretty sure he means that no can no longer, for example, copy a function
> from one class to another, without risking having to rewrite all the
> parameter names.
You have understood me correctly - I would have expressed it a little
differently, but not as succinctly.
> > > * The restriction increases the number of incompatibilities with Delphi
> > > and therefore increases the difficulty of porting existing programs.
> >
> > For porting Delphi programs, compile the unit with -Sd.
>
> That's true, but it's still irritating for people who want to go from delphi
> mode to objfpc mode. Particularly since it doesn't help them at all.
I could probably just about live with -$d. But I still think that
language restrictions imposed on the basis of implementors' ideas on how
people ought to program should be controlled by options.
Regards
Chris
More information about the fpc-devel
mailing list