[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: using 'uint64_t' with Alien
- From: Phoenix Sol <phoenix@...>
- Date: Wed, 8 Jul 2009 22:54:35 -0500
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. )
On Wed, Jul 8, 2009 at 10:29 PM, Sam Roberts <email@example.com>
I'd never heard of alien before this post. It doesn't surprise me the
On Wed, Jul 8, 2009 at 8:05 PM, Phoenix Sol<firstname.lastname@example.org
> 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
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.