[fpc-pascal] New feature: IfThen() intrinsic
Marc Weustink
marc at dommelstein.nl
Mon Feb 1 11:44:01 CET 2016
Sven Barth wrote:
> Am 01.02.2016 09:26 schrieb "Maciej Izak" <hnb.code at gmail.com
> <mailto:hnb.code at gmail.com>>:
> >
> > 2016-02-01 8:59 GMT+01:00 Marco van de Voort <marcov at stack.nl
> <mailto:marcov at stack.nl>>:
> >>
> >> The only really bad thing is the name, as Florian already said, with the
> >> versions in strutils and math. The clash with delphi compatible
> functions
> >> should be avoided.
> >
> >
> > +1 . IfThen instricit is IMO very bad idea. I have a lot of "IfThen"
> from math and strutils modules.
> >
> > IfThen from System totally breaks the compatibility :\ . C'mon
> Sven. In one field you're rigorously but in something like this you're
> liberal (braking/dangerous change / for existing code base).
>
> It does *not* break existing code at all.
It will break future code. What if I need math someday and add this to
the uses clause ? Which one will be called ?
> I have to admit though that I forgot about the potential problems due to
> refactoring. I'll change the name to avoid this pitfall, though I've yet
> to decide which one.
OK,
Marc
More information about the fpc-pascal
mailing list