Re: Uncertain about luabind

Teto <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
On Thu, Jan 14, 2010 at 1:58 PM, Tomas Cokis <[email protected]> wrote:
>
>
>
> Daniel Wallin-4 wrote:
>>
>>   luabind::globals(L)["something"] = some_value;
>>
>
> This looks like what I wanted, can you send values back into c++ through
> 'some_value'?
>
> Also, come to think of it is there a way to load lua files through luabind
> or do I have to load it and then run it through luaL_dostring()?

I do this personnaly, maybe there is a better way
    try {
        // run the script
        if (luaL_dofile(mLuaState,param.c_str()) != 0){
            // error
            fus::ILogger::Log(fus::EError) << lua_tostring(mLuaState,-1);
            return false;
        }
    }
    catch(luabind::error& e){
        fus::ILogger::Log(fus::EError) << lua_tostring(mLuaState,-1);
        return false;
    }

> Thanks for helping a newb
> --
> View this message in context: http://old.nabble.com/Uncertain-about-luabind-tp27160576p27160893.html
> Sent from the Lua C++ Bind mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> luabind-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/luabind-user
>

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.