lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2012/12/14 Philipp Kraus <philipp.kraus@flashpixx.de>:

>
> I'm using two different Lua states and I would like to copy a return argument
> of a Lua script function via C API into the other state eg:
>
…
> I would like to read the stack in C without any converting into C types:

You can't.  Why not?

Here, sir, genuine Rolex, only $40 for you sir.

That's you, trying to tell Lua that you have an unconverted genuine
Lua value that you want to push on the stack.

Lua simply does not trust you.