comp.lang.ada
 help / color / mirror / Atom feed
From: cis.ohio-state.edu!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!d
Subject: Tag values in 9X
Date: 5 May 93 16:13:37 GMT	[thread overview]
Message-ID: <1s8p3h$sud@huon.itd.adelaide.edu.au> (raw)

The draft LRM for 9X says (14.6.4) "The value used to represent each
tag is determined at the time the corresponding type declaration is
compiled." 

I have a couple of questions about this.

Scenario 1. Jane creates some tagged types, writes them to a file
using stream io, and sends the file to Fred, with the message "Here
are the sources I used to create the file." Can Fred, using the same
architecture/compiler be guaranteed to read correctly the file he
receives from Jane? That is, will the same tag values be generated at
both ends?

Scenario 2. Linked libraries. On Day 1, Ann creates a library and
compiles into it the definition of the root of a class. Jack and Jill
are responsible for developing cooperating, communicating processes
in this project. On Day 2, Jack creates another library, links it with
Ann's and creates some more members of the original class. On Day 3
Jill does likewise. On Day 4, Ann puts some more members of the class
in her original library. Now, Jack wants to be able to deal with the
members of the class that he knows about, and Jill wants to be able to
deal with those she knows about. They both know about the ones Ann
made on Day 4. Can Jack write them so that Jill can read them?

I know this last seems a bit contrived, but not much. I also know that
the library is, from the language level, monolithic rather than
distributed spatially. Nevertheless, most implementations provide a
"structured" library mechanism overlying the language's, flat
mechanism, so this is not an idle question. How, in structured
libraries, will implementations ensure that tag values are unique and
consistent?

Just curious.


andrew

#  Andrew Dunstan                   #   There's nothing good or bad   #
#  net:                             #                                 #
#    adunstan@steptoe.adl.csa.oz.au #   but thinking makes it so.     #
#  or: andrewd@cs.adelaide.edu.au   #                                 #

             reply	other threads:[~1993-05-05 16:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-05-05 16:13 cis.ohio-state.edu!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!d [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-05-10 13:07 Tag values in 9X news.intercon.com!psinntp!calspan!westley
replies disabled

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