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=2.2 required=5.0 tests=BAYES_00,FROM_WORDY, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ee1a8b8db84c88f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!local01.nntp.dca.giganews.com!nntp.rcn.net!news.rcn.net.POSTED!not-for-mail NNTP-Posting-Date: Sun, 21 Aug 2005 11:07:32 -0500 Reply-To: "Frank J. Lhota" From: "Frank J. Lhota" Newsgroups: comp.lang.ada References: <4301ab29$0$6989$9b4e6d93@newsread2.arcor-online.net> Subject: Re: Ada exception block does NOT work? Date: Sun, 21 Aug 2005 12:07:32 -0400 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-RFC2646: Format=Flowed; Original Message-ID: NNTP-Posting-Host: 209.6.185.133 X-Trace: sv3-lUiRUiBs0RW2BJ5yKrIxLIVDdtnqAHt4sxGzpMplsuRTy5kTUOdEYvy92cTxj+LYbR9IKwJU+5i1zuf!10d2GY92lpdsWceIDuOFzNBvYVZqoMMdZPNCkqZtEW030O7aJGPYGt9QhwHRknz7 X-Complaints-To: abuse@rcn.net X-DMCA-Complaints-To: abuse@rcn.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:4236 Date: 2005-08-21T12:07:32-04:00 List-Id: "Robert A Duff" wrote in message news:wcck6ig89oz.fsf@shell01.TheWorld.com... > ... > > Agreed. And to some folks, "pointer" implies "you can do arithmetic on > it" (i.e. C-style pointers). > > There's no uniform terminology across programming languages. > That's not surprising, given that programming language design > is such a new art. This lack of uniform terminology can cause confusion. For example, what does "package" mean? In some languages, a package is little more than a name space. In Ada, it is something far more substantial. >>... It certainly does not hurt to introduce a new term >> to avoid potential misunderstandings. > > I think it does hurt to introduce new terms -- we end up with 37 > different ways of referring to the same thing (and folks who talk about > "methods" have trouble communicating with folks who talk about > "procedures" and so on). I'm in full agreement with the notion that new terms should not be introduced unless they represent new concepts. The arguments over "throw" versus "raise", "catch" versus "handle" are silly, and divert attention from the real issues. > True. But they're pretty close. The both "point at" or "refer to" > things. There are differences in which ones you can copy and whether > dereferencing is explicit or implicit and so on. > > Interesting that we "dereference" pointers. ;-) > As opposed to "depointering" them. The English language is full of such quirks, even outside of programming. Why do we drive on the parkway and park on the driveway? > ... >> For the record, I know of no Pascal compiler that implements a pointer as >> anything other than a machine address. > > That's true. And almost all Ada compilers use single-machine-address > to represent almost-all access types. At least major Ada compiler, GNAT, does use "fat" pointers for accessing unconstrained arrays unless forbidden by representation clauses. > ... >> Now that is an interesting concept. I am fond of divorcing the language >> from >> platform constrains when practical. There are, however, some practical >> concerns about this proposal. An Ada 'bignum' type would undoubtedly be a >> controlled type, introducing more overhead than one would expect in a >> scalar >> type. > > Well, one has to learn what to "expect" in terms of efficiency. > > In a garbage-collected implementation of Ada, bignum would not need to > be a controlled type. > > If I said "1..2**80", I would "expect" 3 words to be allocated typically > on the stack, with no heap usage, and no need for either controlled > types or GC. If I said "1..2**1000", I would expect heap usage, and > consequent controlled types or GC. If I'm writing a hard real-time > embedded system, I probably won't say "1..2**1000". > > But I'm not even allowedd to say "1..2**80" in any Ada compiler I know > of, and I can't even count on "1..2**35" portably. Sigh. Good point. I like the idea of being able to create a new integer type without concern over details such as machine representation. > - Bob