emacs-devel
[Top][All Lists]
Advanced

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

Re: User-defined record types, v2


From: Stefan Monnier
Subject: Re: User-defined record types, v2
Date: Thu, 23 Mar 2017 15:47:42 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

> Still same error.

> This is exactly how I reproduce it:

> git clean -xfd
> ./autogen.sh
> make bootstrap
> make check
> # 2 files contained unexpected results:
> #   lisp/emacs-lisp/eieio-tests/eieio-tests.log
> #   lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.log
> src/emacs -Q

Sorry, pilot error, indeed.

BTW, I see further compatibility problems:

if you compile a chunk of code which constructs structs, they get
macroexpanded/inlined to code that does either

    (record 'FOO <args>)
or
    (vector 'cl-struct-FOO <args>)

depending on whether the corresponding cl-defstruct is using the old or
the new style.

So if this is in a different file from the one that does the
`cl-defstruct` you can end up with a situation where the
`cl-define-struct` defines a new-style struct (because it was recently
recompiled), while some code constructs old style structs of that
same type (because it hasn't been recompiled recently).


        Stefan




reply via email to

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