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,e55245590c829bef X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news4.google.com!feeder.news-service.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Wed, 03 Nov 2010 23:44:00 +0100 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Beginners question: Compound types, how-to? References: <86wroy58ff.fsf@gareth.avalon.lan> <86pqup5xfy.fsf@gareth.avalon.lan> <86y69d3rec.fsf@gareth.avalon.lan> <4cd19583$0$6977$9b4e6d93@newsspool4.arcor-online.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <4cd1e5b0$0$6974$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 03 Nov 2010 23:44:00 CET NNTP-Posting-Host: b6594092.newsspool4.arcor-online.net X-Trace: DXC=menD]ncZ]`hZ;14IUKPCY\c7>ejV8QQfIKUEA2Z7jb9Pj;IQYB> X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:15190 Date: 2010-11-03T23:44:00+01:00 List-Id: On 11/3/10 9:44 PM, Yannick DuchĂȘne (Hibou57) wrote: > About the more : think about an inventory machine in a library, it has a method named Run_Inventory, and inside this, a loop and a book variable. This book has nothing special at all, as it is by definition, to hold any what book you may imagine. This variable, here, is, simply what the Book type, is. So your question is indeed very good : what is different ? The answer : one is a type, the other is an instance So how do you name it ? With a name which expose the difference > Either Book_Instance and Book or > else Book and Book_Type or even, if you like it Book_Instance and Book_Type. Book_Instance is the place for different name : A_Book, Any_Book, Current_Book, etc. What ever, you will add to the instance name, something which you reject for the type name (paradox ?). I'm picking up an argument about "just any book" found somewhere in the three very long lines above ;-) You have just started to answer my question about finding object names: What is the role of the just-any-book variable in the loop in Run_Inventory? What does the loop do to the just-any-book object? If there is some information, fine, the name is very much at hand. Otherwise, I'd do the same as Simon Wright and just use the letter B. As long as there aren't too many symbols around. But I'd *not* use Book and have readers sort out name spaces!