GNU bug report logs - #11617
Don't use 'register'; these days it's not needed.

Previous Next

Package: emacs;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Sun, 3 Jun 2012 06:10:01 UTC

Severity: wishlist

Tags: patch, wontfix

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 11617 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 11617 <at> debbugs.gnu.org
Subject: Re: bug#11617: Don't use 'register'; these days it's not needed.
Date: Sun, 03 Jun 2012 09:33:45 -0700
On 06/03/2012 08:22 AM, Stefan Monnier wrote:
> While `register' has been unnecessary for a while
> now, I don't see why it would hurt.

It hurts because it wastes developers' time, and has done so
for many years.  It'd be better to not continue to waste our time
worrying about whether to use 'register', or even having to
read the noise word 'register'.  We should definitely not
waste our time reading or maintaining comments like this:

     /* If we use `register' here, gcc-4.0.2 on amd64 using
       -DUSE_LISP_UNION_TYPE complains further down that we're getting the
       address of `force'.  Go figure.  */

This stuff is all bogus and our lives would be a tiny bit simpler
if it vanished.  I've put work into making it vanish, and
I'd appreciate the chance to make that work useful for others.




This bug report was last modified 12 years and 327 days ago.

Previous Next


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