comp.lang.ada
 help / color / mirror / Atom feed
* 'is-null' property through file keeping (to gurus)
@ 1997-04-29  0:00 Michel Gauthier
  1997-04-29  0:00 ` Samuel Tardieu
  1997-04-29  0:00 ` Robert A Duff
  0 siblings, 2 replies; 3+ messages in thread
From: Michel Gauthier @ 1997-04-29  0:00 UTC (permalink / raw)




This is essentially a question to gurus.

To avoid complex generic parameterising, I have made the assumption that
the property 'this pointer is null / not null' is invariant when a pointer is
written into then read from a file. Another view of the same is 'the null
pointer has only one machine implementation and what is kept in a file is 
no more than a fixed-sized bit sequence'. 
Can this be a reasonable assumption ?

To avoid flames and useless answers, I add that :
 - I am aware that pointers have no meaning if re-read from a file _written 
in another execution_ of the program (in fact, formally, they are references to 
already destroyed objects, hence in principle indistinguishable from null),
 - the problem occurs _in a low-level layer_ of the programme, but
portability is preferable,
 - what I need is exactly an end-of-sequence boolean information, which
can be implemented evenly at a price that is unpleasant so deeply in 
the programme.

So, I'd like to know if there are arguments in favor of or against my
assumptions in Ada texts like 'implementation advice' sections, 
URG work, code-generator documentations, or whatever.

----------          ----------          ----------          ---------- 
Michel Gauthier / Laboratoire d'informatique
123 avenue Albert Thomas / F-87060 Limoges
telephone + 33 5 55 45 73 35  [or ~ 72 32]
fax +33 5 55 45 73 15  [or ~72 01] 
----------          ----------          ----------          ----------
Si l'an 2000 est pour vous un mysticisme stupide, utilisez la base 9
If you feel year 2000 a stupid mystic craze, use numeration base 9
----------          ----------          ----------          ----------




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-04-29  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-04-29  0:00 'is-null' property through file keeping (to gurus) Michel Gauthier
1997-04-29  0:00 ` Samuel Tardieu
1997-04-29  0:00 ` Robert A Duff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox