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,9939161a73e5f223 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.83.101 with SMTP id p5mr12566741wiy.0.1357192301424; Wed, 02 Jan 2013 21:51:41 -0800 (PST) Path: i11ni348904wiw.0!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.131.MISMATCH!xlned.com!feeder3.xlned.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Please help with my lua binding Date: Wed, 02 Jan 2013 22:51:37 -0700 Organization: Also freenews.netfront.net; news.tornevall.net Message-ID: References: <38857635-8ab5-4ff6-b547-f40ac31720a2@googlegroups.com> <87bod79xlf.fsf@mid.deneb.enyo.de> Mime-Version: 1.0 Injection-Date: Thu, 3 Jan 2013 05:51:41 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="656ea2f23126f57fb36504d2d15a002c"; logging-data="32516"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/SR9J8zxGS+5W2nrpalXXjm8r8x3Sf2O4=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: Cancel-Lock: sha1:qXBEfDkMN9KT9+7UpMNi2+UCt90= Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2013-01-02T22:51:37-07:00 List-Id: On 01/02/2013 01:08 PM, Simon Wright wrote: > > These are because GNAT has been confused by ... > >> lua_h.ads:161:01: declaration of full view must appear in private part > > So you need to say > > with System; > package lua_h is > ... > type lua_state is private; > ... > private -- this begins the private part > ... > type lua_state is new System.Address; > ... > end lua_h; This is such basic and essential Ada that if the OP doesn't understand it, he shouldn't be doing anything advanced, such as writing a binding, until he does. -- Jeff Carter "My brain hurts!" Monty Python's Flying Circus 21