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: 103376,df854b5838c3e14 X-Google-Attributes: gid103376,public X-Google-Thread: 1014db,df854b5838c3e14 X-Google-Attributes: gid1014db,public From: James O'Connor Subject: Re: C/C++ knocks the crap out of Ada Date: 1996/02/26 Message-ID: <3132195F.349@apci.net>#1/1 X-Deja-AN: 141250976 references: <00001a73+00002504@msn.com> <4etcmm$lpd@nova.dimensional.com> <312515DF.7D3B@cmlj.demon.co.uk> <4gad29$ddp@druid.borland.com> <4ggshe$7bk@goanna.cs.rmit.EDU.AU> <4gmp2o$ian@ux1.lmu.edu> content-type: text/plain; charset=us-ascii organization: Applied Personal Computing, Inc. mime-version: 1.0 newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++ x-mailer: Mozilla 2.0 (Win16; I) Date: 1996-02-26T00:00:00+00:00 List-Id: Ray Toal wrote: > > ok@goanna.cs.rmit.EDU.AU (Richard A. O'Keefe) wrote: > > >(4) C++ in particular has been changing very rapidly. It seems as if every > > time I turn around there is a new keyword. I was looking at some code > > fragments today in a book; they were full of things like > > void HelpIndex () (RTMessage) = [CM_FIRST+CM_HelpIndex]; > > I've used three C++ compilers, read every book with "Stroustrup" on it, > > and keep on browsing through the draft standard, and haven't the foggiest > > notion what this is supposed to do. > > That line of code was not standard C++ (not that there even is a standard > yet :-). It was a "syntax extension" that came with the Borland C++ > Compiler Version 3.x as part of the ObjectWindows Framework. > Interestingly when Borland released 4.0 they removed that "syntax > extension." > > I would be interested to know if any Ada vendors have released > Ada compilers with vendor-specific syntax modifications. > > Ray Toal This was only used for a Windows application (a TWindow classs, to be specific) to tie certain message responses (In this case a Menu choice with an ID of CM_HelpIndex) to certain functions. (When the (MS) window receives the Command Message of CM_HelpIndex, it calls the C++ function HelpIndex defiend in the TWindow subclass behind the 'Real' Window. You're right, for OWL 2.0, they changed to a standard function declaration and added a couple of MACROS to handle the mapping... James O'Connor oconnor@apci.net