[Top][All Lists]

[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, 30 Mar 2017 08:59:13 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

>>> 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).
>> Or check something in the .elc file when it's loaded.  The Emacs
>> version number is there
> I'm trying to make progress on this.  If we bump the version of the
> generated elc files from 23 to 24, we can check for that.

I think it's OK to ask the user to explicitly enable the
compatibility code.  It's also a way to make the user aware of the issue
and motivate him to recompile his files.


reply via email to

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