top | item 41132350

(no title)

eMSF | 1 year ago

Why does everything have to fit in the memory all of a sudden? Open files, there's your infinite tape.

discuss

order

jcranmer|1 year ago

Your position in a file has to be uniquely specifiable with fpos_t, so you can't have an infinite file in C.

> fpos_t is a complete object type other than an array type capable of recording all the information needed to specify uniquely every position within a file.

[7.23.1p3 of N3054 working draft of C2x, as that's what I have open right now.]

inetknght|1 year ago

> Your position in a file has to be uniquely specifiable

`socket()` has entered the conversation.

eMSF|1 year ago

It will eventually not matter, but I didn't suggest using a single file.