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: a07f3367d7,9939161a73e5f223 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.224.205.65 with SMTP id fp1mr26018649qab.4.1357156500373; Wed, 02 Jan 2013 11:55:00 -0800 (PST) Received: by 10.49.116.1 with SMTP id js1mr7420638qeb.19.1357156500341; Wed, 02 Jan 2013 11:55:00 -0800 (PST) Path: k2ni4226qap.0!nntp.google.com!ee4no12120042qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 2 Jan 2013 11:55:00 -0800 (PST) In-Reply-To: <87bod79xlf.fsf@mid.deneb.enyo.de> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=70.53.16.242; posting-account=cUi90woAAADTaOISowbbHM8GUD0-opJO NNTP-Posting-Host: 70.53.16.242 References: <38857635-8ab5-4ff6-b547-f40ac31720a2@googlegroups.com> <87bod79xlf.fsf@mid.deneb.enyo.de> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Please help with my lua binding From: Patrick Injection-Date: Wed, 02 Jan 2013 19:55:00 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2013-01-02T11:55:00-08:00 List-Id: Thanks Florian, your helping me on two lists ! Sorry to be so dense.... In my lua_h.ads file I put this: type lua_State is private; type lua_State is new System.Address; and in the test.adb file I did this: procedure test is result : Integer ; L : lua_State ; begin L := luaL_newstate ; end test ; I got this: test.adb:13:06: expected private type "lua_State" defined at lua_h.ads:161 test.adb:13:06: found private type "System.Address" lua_h.ads:161:01: declaration of full view must appear in private part gnatmake: "test.adb" compilation error I don't understand the error because I don't understand the difference between access and system.address enough. I will read more about it tonight. Thanks again for all your time