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: 109fba,df854b5838c3e14 X-Google-Attributes: gid109fba,public X-Google-Thread: 1014db,df854b5838c3e14 X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,df854b5838c3e14 X-Google-Attributes: gid103376,public From: Ray Toal Subject: Re: C/C++ knocks the .... Date: 1996/02/18 Message-ID: <4g6hg8$f4j@ux1.lmu.edu>#1/1 X-Deja-AN: 139890443 references: <00001a73+00002504@msn.com> <4etcmm$lpd@nova.dimensional.com> <3114d8fb.5a455349@zesi.ruhr.de> <4f5h5t$f13@vixen.cso.uiuc.edu> <4g1bgf$l5@mailhub.scitec.com.au> <3124B43F.19E0@escmail.orl.mmc.com> <4g2r2r$ded@stc06.ctd.ornl.gov> content-type: text/plain; charset=us-ascii organization: Loyola Marymount University mime-version: 1.0 newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++ x-mailer: Mozilla 1.1 (Windows; U; 16bit) Date: 1996-02-18T00:00:00+00:00 List-Id: dewar@cs.nyu.edu (Robert Dewar) wrote: >iMatt says > > >As for Ada, I'm not yet fully convinced abou the package vs > >type thing. C++ might be ugly because you can have all sorts of > >elements outside classes, but in Eiffel you cannot. > > >Eiffel intentionally makes the unit of namespace and of type > >the same. > >Time to make my observation again: > >unify and confuse mean the same thing (join together) In this case there are good arguments for the "confuse" part - or, at least that identifying a class (a logical construct) with a package or module (a physical construct) is less desirable than cleanly separating them, like Ada does. Norman Cohen just posted a really good article on this topic a few days ago and I won't repeat it here. It should at least "convince" people that separating package and type is a solid design decision and not a hack to maintain upward compatibility with Ada 83. Having programmed in Smalltalk and C++ before Ada 95, I admit I had to look twice at the Ada approach because I was so USED TO confusing class with module. But taking a few minutes to get used to Ada's approach I like it better. Ray Toal