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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5d708145f98f6273,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-04-12 16:32:14 PST Path: archiver1.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news.ntli.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: "Luke A. Guest" Newsgroups: comp.lang.ada Subject: Access type conversions, how? Date: Tue, 13 Apr 2004 01:32:34 +0100 Message-ID: NNTP-Posting-Host: abyss2.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.demon.co.uk 1081812733 971 62.49.62.197 (12 Apr 2004 23:32:13 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Mon, 12 Apr 2004 23:32:13 +0000 (UTC) User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Xref: archiver1.google.com comp.lang.ada:7021 Date: 2004-04-13T01:32:34+01:00 List-Id: Hi, We have the following in our GL package: package C renames Interfaces.C; ... type GLfloat is new C.C_float; ... type GLfloatPtr is access all GLfloat; ... procedure glMultMatrixf(M : in GLfloatPtr); Now, in my code, I've created a Matrix package which has as it's type: type Object is array(Integer range 0 .. 15) of aliased Float; Now, I've made it aliased because I want to pass this to glMultMatrixf, but for some reason I cannot work out exactly how to do it. I've tried all sorts, like: GL.glMultMatrixf(M(M'First)'Unchecked_Access); -- Wrong type I've tried casting it to GL.GLfloat and GL.GLfloatPtr, but nothing's working. Can anyone help? Thanks, Luke.