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,df854b5838c3e14 X-Google-Attributes: gid103376,public From: milod@netcom.com (John DiCamillo) Subject: Re: C/C++ knocks the .... Date: 1996/02/21 Message-ID: #1/1 X-Deja-AN: 140402713 sender: milod@netcom16.netcom.com references: <4g2r2r$ded@stc06.ctd.ornl.gov> <4gc1st$6qj@ux1.lmu.edu> organization: NETCOM On-line Communication Services (408 261-4700 guest) newsgroups: comp.lang.ada Date: 1996-02-21T00:00:00+00:00 List-Id: Ray Toal writes: > 2. Had C++ had namespaces BEFORE classes, there would not have > been the need for both prefix and postfix operations. That's quite an assumption. > At least Smalltalk is ALL POSTFIX and Ada is ALL PREFIX. That's not quite true: I := X'SIZE; Looks like "POSTFIX" to me. (and syntactically hideous to boot: overloading a "grouping" token as a separator token --yech!) > The Ada 95 > designers are to commended for resisting the urge to introduce > postfix message passing syntax, which I have heard some people > wish they had. Having both prefix and postfix is really > annoying to read - is the distinction between member function > and global function really that big of a deal to make > syntactically? I think not. Well, member functions and global functions *are* different, semantically (in general; I don't know the semantics of member functions in Ada95. For a type theoretic treatment, see for example Abadi and Cardelli 1994 and 1995: http://www.research.digital.com/SRC/personal/Luca_Cardelli/Papers.html) Whether a language chooses to highlight the semantic difference in syntax is another matter. Most OO languages have chosen a distinguished argument syntax, but not all. I find it interesting that you feel that "x.y(z)" is "annoying"... >Sorry I seemed to go off topic.... This seems to imply that there was a topic. >Ray Toal -- ciao, milo ================================================================ John DiCamillo Fiery the Angels Fell milod@netcom.com Deep thunder rode around their shores