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: felix
Subject: Re: [Chicken-users] long pointer equivalent
Date: Mon, 26 Aug 2002 17:52:48 +0200

> "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. :)
> 

I don't understand. As long as you return/pass a float with 
a zero fraction, everything should be ok:

(lseek 545485845.0 seek_cur)

It only has to be *representable* as a 64-bit number. And that
can be checked in the call.


cheers,
felix






reply via email to

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