GNU bug report logs - #11604
USE_LISP_UNION_TYPE + USE_LSB_TAG cleanup.

Previous Next

Package: emacs;

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

Date: Fri, 1 Jun 2012 23:40:02 UTC

Severity: minor

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


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

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 11604 <at> debbugs.gnu.org
Subject: Re: bug#11604: USE_LISP_UNION_TYPE + USE_LSB_TAG cleanup.
Date: Sun, 03 Jun 2012 09:26:46 +0200
Paul Eggert <eggert <at> cs.ucla.edu> writes:

> Because the union type is for debugging, not for production.
> It's used mostly to make sure that (for example) one doesn't
> mistakenly write "x = y" when one meant to write "x = XINT (y)".

That doesn't make sense.  You don't need a bitfield for that, just a
struct around EMACS_INT.  If we want to go that route we should rip out
the union Lisp_Object completely.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




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

Previous Next


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