emacs-devel
[Top][All Lists]
Advanced

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

Re: Changing a cl-defstruct definition in a published package


From: Clément Pit-Claudel
Subject: Re: Changing a cl-defstruct definition in a published package
Date: Fri, 13 Jul 2018 14:21:14 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

On 2018-07-13 13:38, Basil L. Contovounesios wrote:
> If cl-defstructs boil down to an array in disguise (I don't know because
> I've never looked into them), would appending (as opposed to prepending
> or inserting) new slots maintain backward compatibility?

I don't think so, unfortunately, because of the second issue I mentioned at the 
end of my email: constructors called on B's side have been compiled down to 
array initializations, which means that even if the new constructor for my 
defstruct has a default value set, B will still pass me arrays that are one 
element too short :/



reply via email to

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