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,63a41ccea0fc803a X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Re: Naming of Tagged Types and Associated Packages Date: 1998/07/27 Message-ID: <6pi0pf$df8$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 375293914 References: <6pdhfo$1br$1@platane.wanadoo.fr> Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Mon Jul 27 13:53:51 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.0; Windows NT; Gateway2000) Date: 1998-07-27T00:00:00+00:00 List-Id: In article , Matthew Heaney wrote: > The "real" name of the type is the identifier used in the type > declaration, never the name of the enclosing package. No, its the package name PLUS the identifier used in the type declaration. Unless, of course you throw use clauses everywhere in your code. If you do that then it doesn't matter much what convention you use, I won't be able to read your code. We have preliminarliy standardized on the Package_Name.Instance notation here. I'm not sure I like it either, but I have yet to see a suggestion that is better when full name notation is used. The other suggestions I have seen here so far either redundantly name the type and the package, or encode the fact that it is a type in the type name or a package in the package name (duh). > You may think it looks nice, but I read this and think "Je crois qu'elle > est laide." Why not just > My_Account: Bank_Account; > Because that won't work. What you are really proposing is something like: My_Account: Bank_Account_Package.Bank_Account; ...which really reads worse and types much longer than: My_Account : Bank_Account.Instance; > You know, the way the language designers intended? Be careful. While this may be a nifty convention for ending discussions about the U.S. constitution, the Ada language designers aren't yet dead. In fact, they are still around and reading c.l.a. In my experience they have a rather annoying habit of piping in and disagreeing with me when I was sure they'd agree. :-) T.E.D. -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum