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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,147a53ad7e1fb89c,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-11 07:23:06 PST Path: archiver1.google.com!news2.google.com!fu-berlin.de!fr.ip.ndsoftware.net!news.completel.fr!ircam.fr!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: ada_wizard@toadmail.com Newsgroups: comp.lang.ada Subject: Re: limited types in containers Date: Thu, 11 Dec 2003 10:21:31 -0500 Organization: Cuivre, Argent, Or Message-ID: NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: melchior.cuivre.fr.eu.org 1071156097 46169 80.67.180.195 (11 Dec 2003 15:21:37 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Thu, 11 Dec 2003 15:21:37 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: User-Agent: Internet Messaging Program (IMP) 3.2.1 X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Gateway to the comp.lang.ada Usenet newsgroup List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:3373 Date: 2003-12-11T10:21:31-05:00 Georg Bauhaus writes: > Charles does (some of it). So does Charles work for you? If not, why not? > The "solutions" I have now are using a _comment_ indicating that > clients _should_ use a constructor function, here is one of the > solutions that doesn't use pointers to T objects: > > type T is tagged private; > -- use make! > > function make > (look_here: D; > look_there: E; > and_also_over_there: D) return T; > > where the full view of T contains pointer fields, and make provides > '(unchecked)_access values for them. SAL provides containers that allow the user to specify 'make' as the way to create objects; give it a try. (http://www.toadmail.com/~ada_wizard/). Feel free to email me for help on how to use it; the user manual is just the Ada source at the moment. -- -- Stephe ___________________________________________________________ This mail sent using ToadMail -- Web based e-mail @ ToadNet