GNU bug report logs - #27718
26.0.50; (cl-typep instance-ab 'class-a) gives wrong answer when compiled

Previous Next

Package: emacs;

Reported by: npostavs <at> users.sourceforge.net

Date: Sat, 15 Jul 2017 21:50:01 UTC

Severity: normal

Tags: fixed, patch

Found in version 26.0.50

Fixed in version 26.1

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


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

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Noam Postavsky <npostavs <at> users.sourceforge.net>
Cc: 27718 <at> debbugs.gnu.org, Alex <agrambot <at> gmail.com>
Subject: Re: bug#27718: 26.0.50;
 (cl-typep instance-ab 'class-a) gives wrong answer when compiled
Date: Tue, 25 Jul 2017 17:21:04 -0400
> Right. We need `get' to be aware of what the compiler has read, so it
> will need to have a reference to the compiler in there somewhere. We
> could name it differently and point the reference in the other
> direction, as in DEFSYM (Qalternate_plist_environment...) and have the
> byte compiler use that instead, which might be slightly more
> aesthetically pleasing. The other possibility is to introduce a
> different kind of `get' and use that in places that need to be aware
> of what the compiler has read.

> I don't see a third option.

Right, so we have 3 options, indeed:
- `get` looks up to byte-compile-plist-environment
- byte-compile manipulates `get`s overriding-plist-environment
- provide a new get-like function.

Either one is fine by me,


        Stefan




This bug report was last modified 7 years and 345 days ago.

Previous Next


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