Re: Dict parsing question

Lawrence D'Oliveiro <ldo-kC51rjc0cqs1dNLGKZg6taU/[email protected]> Wed, 20 Dec 2023 09:00:11 +1300
Newsgroups gmane.comp.freedesktop.dbus
Organization Geek Central
Message-ID <[email protected]>
On Tue, 19 Dec 2023 15:21:01 +0000, Thomas Kluyver wrote:

> On Mon, 18 Dec 2023, at 07:05, Lawrence D'Oliveiro wrote:
>>
>> Is that really the case, that elements of a dict
>> structure have a _greater_ alignment requirement than the structure
>> itself? How is that supposed to work, exactly?  
> 
> I don't think there's any great difficulty there?

So either the offset of the element from the start of the
containing structure can give insufficient alignment in certain cases,
or that offset can vary depending on the location of the structure in
memory. Neither seems very satisfactory.