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,99222a5bd46ef3c9 X-Google-Attributes: gid103376,public From: bobduff@world.std.com (Robert A Duff) Subject: Re: GOTO considered necessary (reworked) Date: 1997/06/21 Message-ID: #1/1 X-Deja-AN: 251478857 References: <5nn2fm$11dk$1@prime.imagin.net> Organization: The World Public Access UNIX, Brookline, MA Newsgroups: comp.lang.ada Date: 1997-06-21T00:00:00+00:00 List-Id: In article , Robert Dewar wrote: >Robert Duff says > ><(though not easy) to implement controlled types with near-zero overhead >on entering and leaving the scope of a controlled variable.>> > >First, you certainly can't eliminate the actual initializatoin and >finalization (unless you are *very* clever indeed :-) Of course. That's not "overhead". That's what the program want's to do, and of course that code needs to get executed, in general. >Second, eliminating the overhead from abort deferral if you are on top >of an operating system is extremely complex. Granted. However, a program without aborts (or, without any tasking at all) doesn't need that overhead. That's what pragma Restrictions is for. I didn't say it's "easy" to eliminate this overhead -- I said it's possible. But the overhead I was thinking of was the overhead of automatically putting controlled objects onto lists and taking them off, which is also possible, but not easy, to eliminate. - Bob