comp.lang.ada
 help / color / mirror / Atom feed
From: Patrick <patrick@spellingbeewinnars.org>
Subject: Re: Please help with my lua binding
Date: Wed, 2 Jan 2013 11:55:00 -0800 (PST)
Date: 2013-01-02T11:55:00-08:00	[thread overview]
Message-ID: <e3a30841-7bd1-4eeb-8b8a-33fdba544022@googlegroups.com> (raw)
In-Reply-To: <87bod79xlf.fsf@mid.deneb.enyo.de>

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



  reply	other threads:[~2013-01-02 19:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-02 18:46 Please help with my lua binding Patrick
2013-01-02 19:03 ` Patrick
2013-01-02 19:31 ` Florian Weimer
2013-01-02 19:46 ` Florian Weimer
2013-01-02 19:55   ` Patrick [this message]
2013-01-02 20:08     ` Simon Wright
2013-01-03  5:51       ` Jeffrey Carter
2013-01-03  9:03         ` Simon Wright
2013-01-03  9:45           ` Florian Weimer
2013-01-02 20:08     ` Florian Weimer
2013-01-02 22:37       ` Patrick
2013-01-02 23:17       ` Patrick
2013-01-03  7:08         ` Patrick
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox