emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109864: Fix minor problems found


From: Stefan Monnier
Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109864: Fix minor problems found by static checking.
Date: Mon, 03 Sep 2012 23:41:49 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

> GCC false alarms aside, are there any reasons to prefer separate
> declaration and initialization?

There are software-engineering reasons to prefer the "initialize as part
of declare" so it's trivially obvious that the variable can't
be uninitialized.  So in general, we'd first want to investigate other
solutions if such an "init within declare" causes problems.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]