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,7936408ed8296efa X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-16 00:39:26 PST From: "Martin Dowie" Newsgroups: comp.lang.ada References: <9b9g7c$cp6$1@taliesin.netcom.net.uk> Subject: Re: User define attributes Date: Mon, 16 Apr 2001 08:27:10 +0100 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 NNTP-Posting-Host: sg2c11210.dsge.edinbr.gmav.gecm.com Message-ID: <3ada9cf5$1@pull.gecm.com> X-Trace: 16 Apr 2001 08:19:17 GMT, sg2c11210.dsge.edinbr.gmav.gecm.com Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!hub.org!hub.org!newsfeed.wirehub.nl!news.maxwell.syr.edu!newsfeed.icl.net!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.easynews.net!easynews.net!easynet-melon!easynet.net!btnet-feed5!btnet!newreader.ukcore.bt.net!pull.gecm.com!sg2c11210.dsge.edinbr.gmav.gecm.com Xref: supernews.google.com comp.lang.ada:6909 Date: 2001-04-16T08:27:10+01:00 List-Id: don't think you can. I believe 'Image is available for all scalar types. you could do something like generic type Blah is private; function Image (X : Blah) return String; package <...>; Ayende Rahien wrote in message news:9b9g7c$cp6$1@taliesin.netcom.net.uk... > How do I add attributes to a type I create? > > And how do I require certain attributes to be exist in a type? (I want a > generic package to accept only types that has 'Image attribute) > > Thanks in advance, > Ayende Rahien > >