GNU bug report logs - #8737
byte compiler doesn't warn about unused pure expressions

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Fri, 27 May 2011 07:24:02 UTC

Severity: wishlist

Tags: confirmed

Found in version 23.2

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 8737 <at> debbugs.gnu.org
Subject: bug#8737: 23.2; garbage numbers
Date: Fri, 27 May 2011 09:47:33 -0300
severity 8737 wishlist
thanks

>  `emacs -Q':

> (defun foo ())

> 12345

> ;;;;;;

> Should some garbage numbers exist in a buffer, Emacs
> evals and compiles that without warning.

> Is that okay?

Why not.  A number is a valid expression that evaluates to itself.
It's true that it's a disappointment that the byte-compiler doesn't warn
"56 evaluated for its side-effect" or something like that, since it does
warn in other cases, but it doesn't seem like a big deal.


        Stefan




This bug report was last modified 93 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.