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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,be6e28f854440947 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: How to get the mouse position with JEWL? Date: Thu, 21 Oct 2010 04:08:18 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: J4HSNf9Eqj44wTz1J3b8lQ.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Tom's custom newsreader Xref: g2news2.google.com comp.lang.ada:15612 Date: 2010-10-21T04:08:18+00:00 List-Id: > I'd add > > pragma Convention (C, Points); > > just to be safe. Yes, I should have specified the layout. Personally I'd use a record representation clause that says exactly what I need. Saying to the Ada compiler "use the 'C' convention - and I hope you are thinking of the same C compiler I am", always seems to me less certain of getting the correct result. > (Point : in Points) > > should work just as well, and has the advantages that > you don't need "aliased" > > > ... > > if getcursorpos(current'access) = 0 then > > and you don't need 'access. > > It is a little confusing because an "in" parameter is modified. I'm inclined to be straightforward unless there's some awfully good reason for being devious.