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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e2fc12ef22d13d95,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-03-15 05:13:30 PST Path: bga.com!news.sprintlink.net!uunet!psinntp!tas.com!tas.com!not-for-mail From: brettb@tas.com (H Brett Bolen) Newsgroups: comp.lang.ada Subject: Q: Generic parameter names exported? Date: 14 Mar 1995 18:48:45 -0500 Organization: Technology Applications and Service Co Message-ID: <3k5a0t$86q@moe.tas.com> NNTP-Posting-Host: moe.tas.com Keywords: Generic Parameters Type Date: 1995-03-14T18:48:45-05:00 List-Id: Greetings, Ok language lawyers, I've got a quick question. First the code: with System_Types, Generic_Queue_Bounded; package Debug is package Word32_Queue_Pkg is new Generic_Queue_Bounded( Item_Type => System_Types.Integer_32, Null_Item => 0); -- Debugging b\253 subtype Word32_Queue_Type is Word32_Queue_PKG.Queue_Type( Size => 100); ID_Word_Queue : Word32_Queue_Type; -- fcns procedure PutI( Queue : in out Word32_Queue_Pkg.Queue_Type; Item : in System_Types.Integer_32 ) -- Word32_Queue_Pkg.Item_Type) ??? renames Word32_Queue_Pkg.Put; procedure GetI( Queue : in out Word32_Queue_Pkg.Queue_Type; Item : out System_Types.Integer_32 ; -- Word32_Queue_Pkg.Item_Type; ??? Valid : out Boolean) renames Word32_Queue_Pkg.Get; end Debug; Item is the 'thing i want to put on the queue. I thought that 'Word32_Queue_Pkg.Item_Type' could be used, but instead I had to use 'System_Types.Integer_32'. I think '..Item_Type' is cleaner. The alsys compile says refer to RM 4.1.3. How come the lines with ??? don't work? Is there another way to do this? Subtyping Item_Type within W32_Q seems like a hack. thanks b\253 brettb@tas.com brettb@cpcug.org brett bolen -- . construction sig