Loss of precision errors in FP conversions
Brad Roberts
braddr at slice-2.puremagic.com
Tue Apr 19 19:11:24 PDT 2011
On Tue, 19 Apr 2011, Walter Bright wrote:
> On 4/19/2011 6:46 PM, bearophile wrote:
> > Walter:
> >
> > > Hence my reluctance to add in a lot of these suggestions.
> >
> > In an answer I've suggested the alternative solution of a
> > -warn_fp_precision_loss compiler switch, that produces warnings only when
> > you
> > use it. In theory this avoids most of the Nagging Nellie problem, because
> > you
> > use this switch only in special situations. But I am aware you generally
> > don't like warnings.
>
> Yes, I've argued strongly against warnings.
The stronger argument, that I agree with, is not having flag based
sometimes warnings. The more flags you have, the more complex the matrix
of landmines there are. I hate micro-managment, in all it's forms.
More information about the Digitalmars-d
mailing list