From: Simon Wright <simon@pushface.org>
Subject: Re: Please help with my lua binding
Date: Wed, 02 Jan 2013 20:08:10 +0000
Date: 2013-01-02T20:08:10+00:00 [thread overview]
Message-ID: <lyk3rvwdp1.fsf@pushface.org> (raw)
In-Reply-To: e3a30841-7bd1-4eeb-8b8a-33fdba544022@googlegroups.com
Patrick <patrick@spellingbeewinnars.org> writes:
> 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"
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;
next prev parent reply other threads:[~2013-01-02 20:08 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
2013-01-02 20:08 ` Simon Wright [this message]
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