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.66.89.74 with SMTP id bm10mr6223484pab.19.1357203808435; Thu, 03 Jan 2013 01:03:28 -0800 (PST) Path: s9ni79328pbb.0!nntp.google.com!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Please help with my lua binding Date: Thu, 03 Jan 2013 09:03:29 +0000 Organization: A noiseless patient Spider Message-ID: References: <38857635-8ab5-4ff6-b547-f40ac31720a2@googlegroups.com> <87bod79xlf.fsf@mid.deneb.enyo.de> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="585248293da7adcafb924c79c19cf5ec"; logging-data="14988"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18tTaHEstjhHpjfLXzpASo1bmYXaCM8Q+4=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (darwin) Cancel-Lock: sha1:PL1P4y5PdWLTp84Gl5oAdF63CnA= sha1:tXqZgWXeTRJmjZ+Ic50JkvZT+8U= Content-Type: text/plain Date: 2013-01-03T09:03:29+00:00 List-Id: Jeffrey Carter writes: > 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. Well, the compiler messages were quite confusing.