lua-users home
lua-l archive

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


Sigh; I was ignorantly hoping that these things could be 'implicitly converted' on the C side.
( Though not very optimistic about the result of doing so. )

I really need to make the time to learn C; which shall I give up: sleeping, eating, or my children?
( I've already given up entertainment, social life, and sex. )

Phoenix Sol


On Wed, Jul 8, 2009 at 10:29 PM, Sam Roberts <vieuxtech@gmail.com> wrote:
On Wed, Jul 8, 2009 at 8:05 PM, Phoenix Sol<phoenix@burninglabs.com> wrote:
> Thanks, Sam.
>
> I tried doing this:
>   tyr.tcrdbrnum:types('double', 'pointer')  --( that's return type, arg
> type(s), in case you don't speak Alien ) ( and Alien will try to convert

I'd never heard of alien before this post. It doesn't surprise me the
things you tried failed. You have to tell alien the truth about the C
API, it won't be able to magically figure out what you want it to do.

I'd talk to Fabio, I think he could modify Alien (or you could) pretty
trivially so that it used decimal strings on the lua side for
(u)int64s on the C side. Without that, you aren't going to be able to
use Alien, I don't think.

Sam