From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: article on acces types and dynamic serialization in Ada (2003)
Date: Thu, 22 Feb 2018 10:16:22 +0100
Date: 2018-02-22T10:16:22+01:00 [thread overview]
Message-ID: <p6m1p6$r8s$1@gioia.aioe.org> (raw)
In-Reply-To: 503e3322-ee8e-4d6f-9aa5-e7b98f87e8f8@googlegroups.com
On 22/02/2018 00:57, Mehdi Saada wrote:
> I already mailed you Simon Wright about it, but I've more info and questions, so it put it here. First the context:
> I played with streams yesterday to learn more, and stumbled on something not really intuitive, at least. what means exactly Some_access_type'Write(Stream1, Some_Pointer) ?
Bug, unless
1. 'Write is overridden, e.g. to flatten the pointer;
2. Stream is used for communication inside the same program, e.g. the
pointer is simply marshaled.
Linked data serialization requires more work and is usually far less
straightforward than mere writing pointers. There are many approaches to
that, e.g. external reference counted objects etc. All this is not
really related to streams.
P.S. You should simply follow the rule: never ever use predefined
'Read/'Write/'Input/'Output, except for the case #2, which is probably
well under 1%.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2018-02-22 9:16 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-21 23:57 article on acces types and dynamic serialization in Ada (2003) Mehdi Saada
2018-02-22 9:16 ` Dmitry A. Kazakov [this message]
2018-02-22 12:08 ` guyclaude.burger
2018-02-22 12:15 ` Mehdi Saada
2018-02-22 13:04 ` Dmitry A. Kazakov
2018-02-22 23:49 ` Randy Brukardt
2018-02-23 3:40 ` Shark8
2018-02-23 7:23 ` Jacob Sparre Andersen
2018-02-23 8:38 ` Dmitry A. Kazakov
2018-02-23 20:28 ` G. B.
2018-02-23 20:40 ` Dmitry A. Kazakov
2018-02-23 10:30 ` Mehdi Saada
2018-02-23 13:13 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox