comp.lang.ada
 help / color / mirror / Atom feed
From: guyclaude.burger@gmail.com
Subject: Re: article on acces types and dynamic serialization in Ada (2003)
Date: Thu, 22 Feb 2018 04:08:53 -0800 (PST)
Date: 2018-02-22T04:08:53-08:00	[thread overview]
Message-ID: <1d83a723-2668-493e-8b38-7cb9261eba70@googlegroups.com> (raw)
In-Reply-To: <p6m1p6$r8s$1@gioia.aioe.org>

>> 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. Maybe not enough requests, though it seems logical to me. I wouldn't want to bother with rewriting attributes if I want something as straightforward as "list references and identifiers, reconstruct by aliasing and taking access here, use the stack there". Generics procedures should really be provided in the standard libraries for that. Not enough demands maybe ?


  reply	other threads:[~2018-02-22 12:08 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 [this message]
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