Re: request for 4.0

new topic     » goto parent     » topic index » view thread      » older message » newer message

Kat wrote:
> 
> 
> Is it possible to add a keyword or three to augment the filesystem commands
> we already have? For instance, seek() accepts only maxint, which means i can
> seek only 1/4 the way into the file i have here. And from what i understand,
> passing a bigger value to seek() won't work. So how about seek_more() or
> seek_skip()
> or seek_large() to call code in the OS to manage the numbers over maxint, so
> Eu doesn't see them and roll them into floating points? That way, to seek 6
> gigabytes into a file, i can seek(4000000000) and then seek_large(2000000000).
> 
> Kat

This seems to be more a limitation of the underlying C library than of Euphoria
itself. (I browsed the source to make sure.) Euphoria should be able to seek into
a file up to four gigabytes.

We'd probably have to look into more platform-specific methods of seeking into a
file to expand seek's parameters past 32 bits.

Wow, Kat. You really know how to push the limits, eh? smile

--
A complex system that works is invariably found to have evolved from a simple
system that works.
--John Gall's 15th law of Systemantics.

"Premature optimization is the root of all evil in programming."
--C.A.R. Hoare

j.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu