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 03:36:05 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!news-out.cwix.com!newsfeed.cwix.com!newsfeed.icl.net!diablo.netcom.net.uk!netcom.net.uk!not-for-mail From: "Ayende Rahien" Newsgroups: comp.lang.ada Subject: Re: User define attributes Date: Mon, 16 Apr 2001 13:23:56 +0200 Organization: (Posted via) GTS Netcom - Public USENET Service http://pubnews.netcom.net.uk Sender: ayende@softhome.net Message-ID: <9behk1$ik9$1@taliesin.netcom.net.uk> References: <9b9g7c$cp6$1@taliesin.netcom.net.uk> <3ada9cf5$1@pull.gecm.com> NNTP-Posting-Host: diup-181-140.inter.net.il X-Trace: taliesin.netcom.net.uk 987417026 19081 213.8.181.140 (16 Apr 2001 10:30:26 GMT) X-Complaints-To: abuse@corp.netcom.net.uk NNTP-Posting-Date: Mon, 16 Apr 2001 10:30:26 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.60.2296.0000 X-MimeOLE: Produced By Microsoft MimeOLE V5.60.2296.0000 Xref: supernews.google.com comp.lang.ada:6911 Date: 2001-04-16T13:23:56+02:00 List-Id: Okay, what abuot defining my own? "Martin Dowie" wrote in message news:3ada9cf5$1@pull.gecm.com... > 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 > > > > > >