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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d342744f1197b3c1 X-Google-Attributes: gid103376,public From: Andreas Almroth Subject: Re: ADA bindings for XVIEW Date: 1997/12/02 Message-ID: <34847099.5EFF@uppsala.mail.telia.com>#1/1 X-Deja-AN: 294633312 X-NNTP-Posting-Host: t6o32p11.telia.com References: <3483F671.134AFCE7@cern.ch> Organization: A3CE, Advanced Computer Engineering Reply-To: andreas.almroth@uppsala.mail.telia.com Newsgroups: comp.lang.ada Date: 1997-12-02T00:00:00+00:00 List-Id: Robert Dewar wrote: > > Andrew says > > < xv_panel_package.adb:165:12: convention for "xv_get" does not permit > returning unconstrained array type > make: *** [xv_panel_package.ali] Error 1 > > the code causing the problem is : > > function xv_get (owner : Xv_opaque; cmd : Integer; Data : Integer; > term : Integer) > return Interfaces.C.Char_array; > pragma import (C,xv_get,"xv_get"); > > Does anyone know why ? or how to conquer ? > >> > > This program makes no sense, since C has no concept of unconstrained > arrays. So the diagnostic makes perfect sense. To conquer it, stop > trying to return unconstrained arrays! Hm, sorry folks, by time the I wrote the code, I did not know better... In my internal use only release (0.5) it's fixed. I must confess I'm not proud of some of the code I wrote in the early days of my ADA95 programming, but hopefully I've learnt a lot during the past two years... I've just got my hands on a SPARC Station 10, so I'm setting up a GNAT 3.10P environment as we speak. Hopefully I can schedule some milliseconds to put together a 0.5 public release. It seems, after all, that at least one person is using my library, so it will be worth the time... Regards, Andreas Almroth