[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] master 8e2b2a2: Minor cleanup in pdumper.c
From: |
Eli Zaretskii |
Subject: |
Re: [Emacs-diffs] master 8e2b2a2: Minor cleanup in pdumper.c |
Date: |
Tue, 22 Jan 2019 18:53:14 +0200 |
> Cc: address@hidden
> From: Paul Eggert <address@hidden>
> Date: Mon, 21 Jan 2019 23:24:29 -0800
>
> Daniel Colascione wrote:
> >> Thanks, I had forgotten about timespectod. I installed the attached. Yay,
> >> one
> >> less use of ALLOW_IMPLICIT_CONVERSION, a macro I'm not a fan of.
> >
> > It beats trying to debug silent integral truncation problems without
> > compiler
> > help. IMHO, it was a mistake for C to allow silent destructive narrowing
> > conversion.
>
> In my experience the warning is more trouble than it's worth in Emacs source
> code, as its signal-to-noise ratio is too large there. There are no free
> lunches
> in software development, and this particular lunch goes waaayyy over budget.
The C language is for people who know what they are doing. It would
be IMO unacceptable for it to reject assignments of a double value to
an int, or even warn by default about it, because any serious
numerical program does that all the time.
- Re: [Emacs-diffs] master 8e2b2a2: Minor cleanup in pdumper.c, Daniel Colascione, 2019/01/19
- Re: [Emacs-diffs] master 8e2b2a2: Minor cleanup in pdumper.c, Daniel Colascione, 2019/01/19
- Re: [Emacs-diffs] master 8e2b2a2: Minor cleanup in pdumper.c, Paul Eggert, 2019/01/19
- Re: [Emacs-diffs] master 8e2b2a2: Minor cleanup in pdumper.c, Daniel Colascione, 2019/01/19
- Re: [Emacs-diffs] master 8e2b2a2: Minor cleanup in pdumper.c, Paul Eggert, 2019/01/19
- Re: [Emacs-diffs] master 8e2b2a2: Minor cleanup in pdumper.c, Eli Zaretskii, 2019/01/19
- Re: [Emacs-diffs] master 8e2b2a2: Minor cleanup in pdumper.c, Paul Eggert, 2019/01/21
- Re: [Emacs-diffs] master 8e2b2a2: Minor cleanup in pdumper.c, Daniel Colascione, 2019/01/21
- Re: [Emacs-diffs] master 8e2b2a2: Minor cleanup in pdumper.c, Paul Eggert, 2019/01/22
- Re: [Emacs-diffs] master 8e2b2a2: Minor cleanup in pdumper.c,
Eli Zaretskii <=
- Re: [Emacs-diffs] master 8e2b2a2: Minor cleanup in pdumper.c, Daniel Colascione, 2019/01/22
- Re: [Emacs-diffs] master 8e2b2a2: Minor cleanup in pdumper.c, Richard Stallman, 2019/01/23