🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.ada
Article #1014

Need to see certain data inside a task type.

#1014
From: "LEN ARMSTRONG ", SYSTEMS LAB
Date: Mon, 13 Oct 1986 14:09
29 lines
1437 bytes
OK, I need some help -- anyone wanna' volunteer?

I have a construct similar to the following:

package P is
   task type T is
      entry E1; -- Entries are really unimportant for this example.
      entry E2;
   end T;
   type TR (PARAM_FIELD : <SOME_TYPE>) is
      record
         TASK_FIELD : T;
      end record;
   XX : TR(<SOME_CONSTANT_VALUE_OF_<SOME_TYPE>>)
end P;

However, my problem comes in when I am in the body of the task type T.  I
need to access inside XX.TASK_FIELD the value held by XX.PARAM_FIELD.  Does
anyone know of anyway I can do this?  For some reason, I feel my chances of
being allowed to do it are very slim.

I would really like to be able to keep the lexical structure I am currently
using (as defined above) but other solutions are welcome also.

Thanks,
Len

LArmstrong%Henry@RCA.Com
Technical Details
Message-ID: <8610132309.AA29939@ucbvax.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!caip!rutgers!nike!ucbcad!ucbvax!RELAY.CS.NET!LARMSTRONG%rca.com

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!caip!rutgers!nike!ucbcad!ucbvax!RELAY.CS.NET!LARMSTRONG%rca.com
From: LARMSTRONG%rca.com@RELAY.CS.NET ("LEN ARMSTRONG ", SYSTEMS LAB)
Newsgroups: net.lang.ada
Subject: Need to see certain data inside a task type.
Message-ID: <8610132309.AA29939@ucbvax.Berkeley.EDU>
Date: Mon, 13-Oct-86 10:09:00 EDT
Article-I.D.: ucbvax.8610132309.AA29939
Posted: Mon Oct 13 10:09:00 1986
Date-Received: Tue, 14-Oct-86 07:27:57 EDT
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The ARPA Internet
Lines: 29