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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,88e7ef9008757431 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Function Calls by Address Date: 1999/09/06 Message-ID: <7r1cd4$9dn$1@nnrp1.deja.com>#1/1 X-Deja-AN: 521818206 References: <37CADE68.6AF06F5D@escmail.orl.lmco.com> <37CEEFFA.7D73F78D@magic.fr> <7qooh7$hbh$1@nnrp1.deja.com> <37CFFEA6.921CBE59@magic.fr> <7qp5oo$2un@hobbes.crc.com> <7qptoa$cul$1@nnrp1.deja.com> <37D2E1A7.CAC3F923@magic.fr> <7qvasf$sno$1@nnrp1.deja.com> <37D41767.CEB186F4@magic.fr> X-Http-Proxy: 1.0 x42.deja.com:80 (Squid/1.1.22) for client 166.72.71.164 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Mon Sep 06 21:40:54 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-09-06T00:00:00+00:00 List-Id: In article <37D41767.CEB186F4@magic.fr>, Francois Godme wrote: > Robert Dewar wrote: > > Robert, please can you be less enigmatic. I do not see why it > is not relevant. > > Is it wrong to think that Machine_State_Operations gathered methods that > apply on a Machine_State, as its own name may imply? Is it wrong to > think that an abstract tagged type could fill the same purpose, if it > was allowed in this context? The point of subunits is to encapsulate locally, whether tagged types are used or not is an orthogonal issue. Personally I would find the use of tagged types for this particular purpose to be a case of clobbering a fly with a sledge hammer, I don't see that it would add anything. But as I say, the issue is one of encapsulation. This functionality is strictly local to the body of ada-exceptions, and subunits capture this relationship in a natural way. > By the way, it seems to me that your example only stands as a > justification for the use of the separate construct in a language subset > we don't write programs with, the subset of the Ada language allowed to > write the GNAT runtime. Let me know where you learned of this subset. I have no awareness of any such restrictions :-) Certainly we are free to use tagged types if we want to in the runtime, see for example the way the I/O routines are programmed and the type File_Type is handled. Robert Dewar Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.