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,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4204eddb984f308e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-24 19:29:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fr.usenet-edu.net!usenet-edu.net!enst.fr!not-for-mail From: "Steven Deller" Newsgroups: comp.lang.ada Subject: RE: Apex 4.2 question about records Date: Thu, 24 Oct 2002 22:30:14 -0400 Organization: Smooth Sailing LLC Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1035512942 53021 137.194.161.2 (25 Oct 2002 02:29:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Fri, 25 Oct 2002 02:29:02 +0000 (UTC) Return-Path: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 In-Reply-To: Importance: Normal Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.13 Precedence: bulk X-Reply-To: List-Unsubscribe: , List-Id: comp.lang.ada mail<->news gateway List-Post: List-Help: List-Subscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:30119 Date: 2002-10-24T22:30:14-04:00 Nelson, Yes, I agree that having it all the time is annoying. I have sent an independent "complaint" to Rational. I suggest you do the same. Normally when a particular compiler is doing something strange, it is probably best to contact their customer support. I'm sure Rational's support would tell you the same thing I describe below (it actually is just a summary from the Apex 4.2 release notes). What the message is is saying it quite clear if you read it carefully. There are record types (up to 3 scalars) that are now passed efficiently in registers (by value) rather than in memory with a pointer (by reference). Properly written programs won't care, but it is not uncommon for customers to write code that depends on the "by reference" implementation. Since Ada leaves the passing mechanism for records unspecified (specifically to allow such optimizations), those programs are erroneous. The message is Rational being over-protective of their customers. Unfortunately, this is one case where there are so many false positives, that the message gets tuned out anyway. I suggested they add a switch that would turn off this warning if users wanted (without turning off other warnings). By the way, the optimization makes things like complex arithmetic extremely fast, even without inlining. That was the primary reason for Rational adding this particular optimization. Note -- I am not a Rational employee but was for many years. I know about this particular issue because it is showing up in an upgrade to Apex 4.2 that I am helping with at a customer site. Regards, Steve > -----Original Message----- > From: comp.lang.ada-admin@ada.eu.org > [mailto:comp.lang.ada-admin@ada.eu.org] On Behalf Of Nelson Chandler > Sent: Thursday, October 24, 2002 6:30 PM > To: comp.lang.ada@ada.eu.org > Subject: Apex 4.2 question about records > > Hi. I'm using Apex 4.2. When I compile and it reaches a > record type, I get this warning: > > " is passed by copy, but it was passed by > reference in releases prior to Apex 4.2; this may cause > incompatibilities" > > What does this mean and why is it telling me. It seems like > record types would be fairly common and its extreemly > annoying getting this message all the time. > > Thanks, > Nelson > > > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ad> a >