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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7ee10ec601726fbf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-29 08:42:22 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!feeder.qis.net!btnet-peer!btnet-peer0!btnet-feed5!btnet!mendelevium.btinternet.com!not-for-mail From: "Tony Gair" Newsgroups: comp.lang.ada Subject: Re: is Ada dying? Date: Mon, 29 Oct 2001 16:36:08 -0000 Organization: BT Internet Message-ID: <9rk0q3$955$1@uranium.btinternet.com> References: <3BC264B4.EBB8238@worldnet.att.net> <3BDBC0DC.5080005@mail.com> NNTP-Posting-Host: host217-34-66-59.in-addr.btopenworld.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Xref: archiver1.google.com comp.lang.ada:15352 Date: 2001-10-29T16:36:08+00:00 List-Id: No "Hyman Rosen" wrote in message news:3BDBC0DC.5080005@mail.com... > James Rogers wrote: > > > Yes. Let's all use a language with common constructs like the > > following: > > > > float (*(*f)())(); > > > > This is "simple" C syntax for a pointer to a function returning a > > pointer to a function returning a float. > > > I could go "nyah nyah" and point out that until Ada 95 came along, > Ada didn't have pointers to functions. And functions returning > pointers to functions aren't all that common, so you don't see too > many declarations like that in typical C or C++ code. > > That being said, I must agree that the declaration syntax of C (and > therefore of C++) is a disasterous mistake, stemming from a misguided > design goal. The point of C's declaration syntax is to make the > declaration of a name mirror its use. That is, to actually retrieve > the ultimate float from f, you can write > > float an_f = (*(*f)())(); > > See? It's an idea, just not a good one. > >