From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,aa7b0448abeecbba X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: How to print Task_ID type? (GNAT SunOS) Date: 1996/04/04 Message-ID: #1/1 X-Deja-AN: 145801878 references: <316308F0.6375@ee.ubc.ca> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-04-04T00:00:00+00:00 List-Id: Greg asks "Can one of the Text_IO packages be used to print a Task_ID type (or any access Integer type for that matter...)? I'm using GNAT under SunOS which defines the Task_ID type in Ada.Task_Identification as private, but implements it as an Integer access type. If one of the Text_IO packages won't work, then what will?" Certainly not, private means private, neither you nor Text_IO can mess with a private type in another package. Well you culd use unchecked conversion after looking in the private part, but that would NOT be pleasant code. What do you really need to do here? Doesn't the Image function for Task_Id do what you want? That's what it's for! function Image (T : Task_Id) return String;