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-Thread: a07f3367d7,19b8909eebb73a8e X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!news-out.readnews.com!transit3.readnews.com!panix!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Question on Controlled types Date: Sat, 30 May 2009 14:37:44 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <4a211b98$0$2862$ba620e4c@news.skynet.be> <1m6a6s5xq3hrf.1i7zbi65wq3cd$.dlg@40tude.net> <4a213fd0$0$2847$ba620e4c@news.skynet.be> <4a214769$0$2865$ba620e4c@news.skynet.be> <4a2153a4$0$2846$ba620e4c@news.skynet.be> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1243708664 2636 192.74.137.71 (30 May 2009 18:37:44 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sat, 30 May 2009 18:37:44 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:oF9kbOkdJhDgb23qWD9jLTatQEk= Xref: g2news2.google.com comp.lang.ada:6126 Date: 2009-05-30T14:37:44-04:00 List-Id: Olivier Scalbert writes: > Robert A Duff wrote: >> Olivier Scalbert writes: >> >>> 5- I do not need this: >>> Delay2 := Delay1; >> Then you probably want to make the type limited (e.g. derive from >> Limited_Controlled). You also want to turn on Ada 2005 mode, so >> you can do build-in-place function returns. >> - Bob > > Thank Bob, it starts working now ! You're welcome. > I do not know the build-in-place function returns yet. AdaCore's Gems number 10, 11, and 12 talk about this. They're available here: http://www.adacore.com/category/developers-center/gems/ > I have just received my Barnes 2005 yesterday ... > ;-) The Barnes book is good. - Bob