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,1540032852ee6d61 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 08 Feb 2007 19:27:05 -0600 From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Why does this work? (overloads) References: <1170931228.165961.8170@m58g2000cwm.googlegroups.com> X-Newsreader: Tom's custom newsreader Message-ID: Date: Thu, 08 Feb 2007 19:27:06 -0600 NNTP-Posting-Host: 67.164.83.70 X-Trace: sv3-8uQPs0ce/jSMGrJdXyVzy+tY09mEvux6MxuF+DUfd+xpUnuwkNw6eISSG4IaY9FU9SOGHAz7JAL64pQ!DllfsWX88LLWifUo+hiXftNRd6vWotUVDL3aOkErnxoRtLOKBwYVKb3JfwLmKny+z5eHB/HoBz5m!dwqCNdPgittEQg== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:9165 Date: 2007-02-08T19:27:06-06:00 List-Id: > > to make Pascal let me have it both ways by declaring both types, one > > type indexed 0..NN-1 and the other 1..NN, and then I set a pointer of > > one type to an array originally declared with another type. I'm > > guessing that Ada doesn't allow this, however. You can convert an access to one thing to an access to another using Unchecked_Conversion. You can also declare A, then declare B and for B'address use A'address.