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,fd037befc4df6bdc X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: ObjectAda: LPCSTR -> STRING ? Date: 1998/01/06 Message-ID: #1/1 X-Deja-AN: 313350269 References: <884055877.1213464581@dejanews.com> <34B24858.9DB@erols.com> X-Complaints-To: usenet@news.nyu.edu X-Trace: news.nyu.edu 884109172 32249 (None) 128.122.140.58 Organization: New York University Newsgroups: comp.lang.ada Date: 1998-01-06T00:00:00+00:00 List-Id: Robin said << (LpSection => C_Section (C_Section'First)'address, LpKeyName => System.Null_Address, LpString => C_Section (C_Section'First)'Address, LpFileName => C_File (C_File'First)'Address); >> Note that for any compiler following the implementation advice in the RM (all currently available Ada 95 compilers do so), the use of the X'First subscript here is obfuscation. In fact there is no real reason to suppose that it will work any better than simply saying C_File'Address, since neither is really guaranteed to work in an absolute semantic sense, and in practice they are interchangable. I think it is reasonable to avoid FUD about compilers not doing the sensible thing if that FUD results in obscuring the code.