chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] long pointer equivalent


From: Perry E. Metzger
Subject: Re: [Chicken-users] long pointer equivalent
Date: 26 Aug 2002 09:28:47 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

"felix" <address@hidden> writes:
> So would it be ok to have a foreign type specifier `int64' and
> `unsigned-int64' that is handled on the Scheme side as a float? Like:
> 
> (define lseek
>   (foreign-lambda unsigned-int64 "lseek" unsigned-int64 int) )

Well, it can't be a float in that if you're doing lseeks you really
want to specify which block in the disk it is you're looking for, not
which general section. :)

However, it is not strictly speaking necessary for Chicken itself to
have a native 64 bit type -- if we had bignums, for instance, it would
be fine if some magic converted between a bignum and a 64 bit
external-only type that was never used by chicken except for
communication with the C interface.


-- 
Perry E. Metzger                address@hidden
--
"Ask not what your country can force other people to do for you..."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]