[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: get return type without convert
- From: Dirk Laurie <dirk.laurie@...>
- Date: Fri, 14 Dec 2012 11:56:12 +0200
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.