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,XPRIO_SHORT_SUBJ autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2843c5eea3415584 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Thu, 16 Dec 2004 17:56:47 -0600 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: Subject: Re: APQ Date: Thu, 16 Dec 2004 17:58:04 -0600 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-2OI8N8cmopMsxSXGe0b7c2AX/RMN0M2DcrIdkJdQE5DelcZ+SVjLVKbtobWowqSu8w0f32h4lmbnh2z!V1JUi1XiKGwAv3pxCDaik8bGA3X+wy7RccZrLTTaHJb/Vk7RoSWzEUSEQnIVX6KAx4r5RkQ1ZFPk X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.22 Xref: g2news1.google.com comp.lang.ada:7009 Date: 2004-12-16T17:58:04-06:00 List-Id: "Warren W. Gay VE3WWG" wrote in message news:Onewd.204$Wt5.95202@read2.cgocable.net... ... > > Why not make the procedures abstract instead of having them raise > > an Is_Abstract? This way the checks can be done at compile time. > > Answer: I wanted to put some code at the top level so that I > wouldn't have to repeat it for every database. For some reason > the compiler wouldn't let me do it (perhaps I was missing > something). I would be happy to have this done, but I was > unable to make it so in practice. Maybe someone else can > figure it out. I haven't looked at the code in question, but it certainly is possible to have concrete operations and components on an abstract type (the type has be abstract - if it is tagged - to have abstract subprograms). We do it all the time in Claw and its related programs. That's the big difference between an abstract type and an Ada 2005 interface (which can't have any data or concrete subprograms). Randy.