From: Florian Weimer <fw@deneb.enyo.de>
Subject: Re: Please help with my lua binding
Date: Wed, 02 Jan 2013 21:08:47 +0100
Date: 2013-01-02T21:08:47+01:00 [thread overview]
Message-ID: <87txqz8i0g.fsf@mid.deneb.enyo.de> (raw)
In-Reply-To: e3a30841-7bd1-4eeb-8b8a-33fdba544022@googlegroups.com
> 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
Please post more complete sources. You need something like this:
with System;
package Lua_H is
type lua_State is private;
function luaL_newState return lua_State;
private
type lua_State is new System.Address;
pragma Import (C, luaL_newState, "luaL_newState");
end;
with Lua_H;
procedure Test is
L : Lua_H.lua_State;
begin
L := Lua_H.luaL_newState;
end Test;
(Later, you should probably drop the prefixes and move the luaL
functions to a separate package.)
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
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 [this message]
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