chicken-janitors
[Top][All Lists]
Advanced

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

Re: #768: s11n: reconstruction of hash-tables incorrect on de-serializat


From: Chicken Trac
Subject: Re: #768: s11n: reconstruction of hash-tables incorrect on de-serialization
Date: Thu, 20 Aug 2020 18:38:37 -0000

#768: s11n: reconstruction of hash-tables incorrect on de-serialization
-----------------------------------------+--------------------
            Reporter:  felix winkelmann  |      Owner:  (none)
                Type:  defect            |     Status:  new
            Priority:  critical          |  Milestone:
           Component:  extensions        |    Version:  4.7.x
          Resolution:                    |   Keywords:  s11n
Estimated difficulty:  hard              |
-----------------------------------------+--------------------

Comment (by Idiomdrottning):

 About backwards compatibility: deserialize and chicken-dump in my version
 now expect eleven slots whereas they used to expect five. "So why not
 change the tag to `new-hash-table-tag` or similar?"

 The problem is that serialize itself was (and still is) implemented as
 "emit **all the slots** of hash-table", not just the first five. So for
 many many years, serialize has emitted eleven-slot hash-tables already
 while deserialize/chicken-dump has tried to snarf only five. Backwards
 compatibility was *already* broken.

-- 
Ticket URL: <https://bugs.call-cc.org/ticket/768#comment:9>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

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