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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5394d9ca5f955366 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: pointers & OOP Date: 1999/05/05 Message-ID: <7gq27t$vnd$1@nnrp1.deja.com>#1/1 X-Deja-AN: 474391701 References: <$DL10CAsSgL3Iwj3@jr-and-assoc.demon.co.uk> <7gn7gr$fr5$1@nnrp1.dejanews.com> X-Http-Proxy: 1.0 x17.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.4 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Wed May 05 18:21:54 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/3.01SC-SGI (X11; I; IRIX 5.3 IP22) Date: 1999-05-05T00:00:00+00:00 List-Id: In article , John Robinson wrote: > Hence, a mapping from UML to Ada 95 should always map a single UML class > box onto a package containing a single tagged type. Although the > language allows multiple tagged types to be declared in a single package > it makes no sense whatsoever to do so. This is very wrong. In fact I would say that you have essentially completely missed one of the most powerful features of Ada, namely that the packages and tagged types need NOT be in 1-1 correspondence. You sound like a C++ programmer trying to squeeze the paradigms you are used to into Ada 95 in an ugly and very unnatural way. I think you should look at a bunch of Ada code to get the feeling for why the above recommendation is not just wrong, but very wrong! Very often putting multiple types into a single package solves in a neat and clean way nasty problems that simply don't have neat solutions in other languages. You are tieing BOTH hands behind your back if you adopt this completely unnecessary and damaging restriction. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own