comp.lang.ada
 help / color / mirror / Atom feed
From: Mehdi Saada <00120260a@gmail.com>
Subject: Re: article on acces types and dynamic serialization in Ada (2003)
Date: Thu, 22 Feb 2018 04:15:26 -0800 (PST)
Date: 2018-02-22T04:15:26-08:00	[thread overview]
Message-ID: <5d8580c2-b43d-4b2c-8a46-3a6ed33967aa@googlegroups.com> (raw)
In-Reply-To: <503e3322-ee8e-4d6f-9aa5-e7b98f87e8f8@googlegroups.com>

>> what means exactly Some_access_type'Write(Stream1, Some_Pointer) ?
> Bug, unless 
> 2. Stream is used for communication inside the same program, e.g. the 
> pointer is simply marshaled. 
"Bug", then why is it allowed... Considering access types as elementary types also confuses me. First thing I learnt about them is you can't hardly ever assume they are simple addresses, or elementary. As for point 2, isn't it what I did in my first example ? I reset the file with mode IN, in immediate enclosing block, 'Read it but got an erroneous memory access.
There might be numerous ways around this linked data issue but having a sane default implementation, as we already have defaults everywhere you can still override. At least for something as straightforward as "list references and identifiers, reconstruct by aliasing and taking access here, use the stack there". Generics subprograms could be provided in the standard libraries. 
Not enough requests maybe ?

  parent reply	other threads:[~2018-02-22 12:15 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
2018-02-22 12:08   ` guyclaude.burger
2018-02-22 12:15 ` Mehdi Saada [this message]
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