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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,31b3d1f7b3516357 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news4.google.com!news.glorb.com!news.cs.univ-paris8.fr!proxad.net!proxad.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Cannot initialize entities of limited type? From: Georg Bauhaus In-Reply-To: References: <45a7956e$1@news.post.ch> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: # Message-Id: <1168709994.1394.17.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Date: Sat, 13 Jan 2007 18:39:55 +0100 NNTP-Posting-Date: 13 Jan 2007 18:38:06 CET NNTP-Posting-Host: 76c88782.newsspool2.arcor-online.net X-Trace: DXC=cYBDOeN39CYPU8j_I0DN6_A9EHlD;3YcR4Fo<]lROoRQFl8W>\BH3YRQ\OId>O0_?\N[W On Fri, 2007-01-12 at 15:28 +0100, Maciej Sobczak wrote: > > Update your compiler or use: > > > > procedure Constructor (X: in out T); > > OK, I will try this for the time being. > FWIW, a somewhat indirect method of guaranteed initialisation can can use a constructor function that - takes an access to a limited object - returns one component of the object type T is limited record data : Integer := Constructor(T'access); -- ... end record; If everything that Constructor needs is in scope, this should do the trick.