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,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,dfb98535bcaeb3a6 X-Google-Attributes: gid103376,public From: Ted Dennison Subject: Re: Controlled types in local generics? Date: 1999/12/30 Message-ID: <386BB71D.CB7920FD@telepath.com>#1/1 X-Deja-AN: 566603890 Content-Transfer-Encoding: 7bit References: <386AFDA8.7C3110CC@telepath.com> <84g2va$q8u$1@nnrp1.deja.com> X-Accept-Language: en,pdf Content-Type: text/plain; charset=us-ascii X-Complaints-To: Abuse Role , We Care X-Trace: newshog.newsread.com 946583110 216.14.8.72 (Thu, 30 Dec 1999 14:45:10 EST) Organization: Telepath Systems (telepath.com) MIME-Version: 1.0 NNTP-Posting-Date: Thu, 30 Dec 1999 14:45:10 EST Newsgroups: comp.lang.ada Date: 1999-12-30T00:00:00+00:00 List-Id: Robert Dewar wrote: > There are various ways to work around this, it is one of the > areas where we have helped several of our supported customers. Hmm. Well, as I'm doing this work for free on OpenToken on my home computer on my vaction for release as open sourced software to the community, I don't suppose there's anyone else here who'd care to provide this information to me gratis? I'm not too sure how expensive ACT support is, but I seriously doubt it would fall in my household budget. Particularly not after we call in the plummer to fix our toilet leak... As near as I can tell, there's no way around it. The whole point of the object I'm trying to create is to manage items whose type is declared in another generic. I can't take that type out of the generic, as it needs a field that is of a user-defined enumeration (or other discrete) type. I don't want to force that generic to be library-level, because in some cases that causes other accessability level problems, and anyway there is already a lot of code out there using OpenToken that instatiates it within subroutines. I don't see any way to fake it out with pointers, as these generic objects have to be dynamicly-allocated. Its not a huge deal. I'll just use a fixed-size array approach, or require users to call some kind of cleanup routine when they are done. But the former is probably going to be slower, and the latter is going to be less convienent for the users. -- T.E.D. Home - mailto:dennison@telepath.com Work - mailto:dennison@ssd.fsi.com WWW - http://www.telepath.com/dennison/Ted/TED.html ICQ - 10545591