[Top][All Lists]

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

Re: [Chicken-users] set-file-position! only works with fixnums

From: Thomas Bushnell BSG
Subject: Re: [Chicken-users] set-file-position! only works with fixnums
Date: Wed, 30 Sep 2009 23:16:24 -0700

On Wed, 2009-09-30 at 17:32 -0700, Kon Lovett wrote:
> On Sep 29, 2009, at 7:55 AM, John Cowan wrote:
> > In the posix unit, you should be able to pass an integral flonum to
> > set-file-position!  and get one back from file-position so that files
> > longer than 2^31 bytes can be handled.
> Thank you. It will be fixed.

I think this is a mistake, but "fixing" it is harder than it seems.

Really, this is totally non-schemey.  

The criterion should be an exact integer, just as it is for arrays.
Instead of allowing inexact integers to be file positions, how about
extending the hierarchy to handle these cases directly?

reply via email to

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