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/28 Message-ID: <6pl5rh$elr$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 375729147 References: <6pdhfo$1br$1@platane.wanadoo.fr> <6pi0pf$df8$1@nnrp1.dejanews.com> <6pirk1$iar$1@nnrp1.dejanews.com> <6pknai$qst$1@nnrp1.dejanews.com> Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Tue Jul 28 18:38:41 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.0; Windows NT; Gateway2000) Date: 1998-07-28T00:00:00+00:00 List-Id: In article , Brian Rogoff wrote: > Good one! However, my point wasn't that you couldn't do it, just that > you'd have to be deliberately silly to do so (come on Ted, you really > couldn't think of a better name than Command_Type_Type?). It would Its not something that is typically done just to be silly. In fact, the issue comes up among other places on nearly every record that has an enumerated variant. A very typical example: I have a command that gets passed to a routine for processing. The standard says it should be named Command_Type. It is implemented with several "data" fields and an enumeration field specifing what the actual command is (what "type" of command it is). The natural name for that is Command_Type. Under the naming convetion, it becomes Command_Type_Type. Again, this isn't something that's deliberately done by me to be silly (lord knows I do plenty of those). Its something that I have seen come up often in *other*people's* code. I've worked on a couple of programs where the lead engineer got the coding standards written so that putting "_type" on the end of every type was specifically *forbidden*. Usually derisive verbal abuse from fellow engineers is enough to do the job, though. :-) 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