"registry" missing in latest luabind 0.7 from sf.net?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

"registry" missing in latest luabind 0.7 from sf.net?

subatomic

hi, first post here, and just getting into lua and luabind...

The docs say these two functions are available:
   object globals(lua_State*);
object registry(lua_State*);
globals works fine, but my compiler is not able to find luabind::registry(..):

     #include <luabind/luabind.hpp>
      ...
     luabind::object entity_table = luabind::registry(L)["__actors"];

errors in vc7.1 with:
main2.cpp(106) : error C3861: 'registry': identifier not found, even with argument-dependent lookup

doing a grep for "registry" in the luabind directory, I see neither registry nor get_registry in the luabind scope...

>> grep registry *
adopt_policy.hpp:                       class_registry* registry = class_registry::get_registry(L);
adopt_policy.hpp:                       class_rep* crep = registry->find_class(LUABIND_TYPEID(T));
copy_policy.hpp:                        class_registry* registry = class_registry::get_registry(L);
copy_policy.hpp:                        class_rep* crep = registry->find_class(LUABIND_TYPEID(T));
copy_policy.hpp:                        class_registry* registry = class_registry::get_registry(L);
copy_policy.hpp:                        class_rep* crep = registry->find_class(LUABIND_TYPEID(T));
function.hpp:                                   detail::class_registry* r = detail::class_registry::get_registry(L);
handle.hpp:// registry table.
object.hpp:  // in the registry.


What am I missing?  Has this function been renamed?  or is there a header I need to include? (if so, maybe I missed this in the docs??  I have tried including every #include mentioned in the docs)
I'm reading docs at http://www.rasterbar.com/products/luabind/docs.html

thanks!


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user
Reply | Threaded
Open this post in threaded view
|

"registry" missing in latest luabind 0.7 from sf.net?

subatomic
reposting this... i think gmail was having problems with sf.net recently (i didn't see the msg come across the list.)  appologies if this is a dup...

---------- Forwarded message ----------
From: subatomic <[hidden email]>
Date: Oct 3, 2006 9:00 PM
Subject: "registry" missing in latest luabind 0.7 from sf.net?
To: [hidden email]


hi, first post here, and just getting into lua and luabind...

The docs say these two functions are available:
   object globals(lua_State*);
object registry(lua_State*);
globals works fine, but my compiler is not able to find luabind::registry(..):

     #include <luabind/luabind.hpp>
      ...
     luabind::object entity_table = luabind::registry(L)["__actors"];

errors in vc7.1 with:
main2.cpp(106) : error C3861: 'registry': identifier not found, even with argument-dependent lookup

doing a grep for "registry" in the luabind directory, I see neither registry nor get_registry in the luabind scope...

>> grep registry *
adopt_policy.hpp:                       class_registry* registry = class_registry::get_registry(L);
adopt_policy.hpp:                       class_rep* crep = registry->find_class(LUABIND_TYPEID(T));
copy_policy.hpp:                        class_registry* registry = class_registry::get_registry(L);
copy_policy.hpp:                        class_rep* crep = registry->find_class(LUABIND_TYPEID(T));
copy_policy.hpp:                        class_registry* registry = class_registry::get_registry(L);
copy_policy.hpp:                        class_rep* crep = registry->find_class(LUABIND_TYPEID(T));
function.hpp:                                   detail::class_registry* r = detail::class_registry::get_registry(L);
handle.hpp:// registry table.
object.hpp:  // in the registry.


What am I missing?  Has this function been renamed?  or is there a header I need to include? (if so, maybe I missed this in the docs??  I have tried including every #include mentioned in the docs)
I'm reading docs at <a href="http://www.rasterbar.com/products/luabind/docs.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.rasterbar.com/products/luabind/docs.html

thanks!



--
Kevin Meinert
http://www.subatomicglue.com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user
Reply | Threaded
Open this post in threaded view
|

Re: "registry" missing in latest luabind 0.7 from sf.net?

Arvid Norberg-2
In reply to this post by subatomic
On Oct 4, 2006, at 06:00, subatomic wrote:

> [...]
> The docs say these two functions are available:
> object globals(lua_State*);
> object registry(lua_State*);globals works fine, but my compiler is  
> not able to find luabind::registry(..):
> [...]
>
> What am I missing?  Has this function been renamed?  or is there a  
> header I need to include? (if so, maybe I missed this in the  
> docs??  I have tried including every #include mentioned in the docs)
> I'm reading docs at http://www.rasterbar.com/products/luabind/ 
> docs.html

It looks like that function was overlooked when rewriting the object  
class. I've added it and checked in (to cvs head).
Thanks for the report!

It is now located in luabind/object.hpp, next to the globals() function.

--
Arvid Norberg



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user