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,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9677a3433b89e25b X-Google-Attributes: gid103376,public From: Nick Roberts Subject: Re: attributes in generic procedure Date: 1999/11/25 Message-ID: <383DC78E.63A556E5@callnetuk.com>#1/1 X-Deja-AN: 553821097 Content-Transfer-Encoding: 7bit References: <818esd$t6l$1@nnrp1.deja.com> X-Original-NNTP-Posting-Host: da132d235.dialup.callnetuk.com X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: 27 Nov 1999 19:37:41 GMT, da132d235.dialup.callnetuk.com Organization: Computer Consultant MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-11-25T00:00:00+00:00 List-Id: daelen@my-deja.com wrote: > > I would like to create a generic procedure as shown below which will only be > used for scalar types. Does anybody have a hint how to accomplish this? > > generic > type A_Type is private; > ... > end Update; The answer is simple: generic type A_Type is (<>); ... I suspect the poster needs to do a little brushing up on generics. -- Nick Roberts Computer Consultant (UK) http://www.adapower.com/lab/adaos