RE: tail -f behaviour in ghc.

28 Aug
2001
28 Aug
'01
11:17 a.m.
Sure, EOF is checked every time you read rather than being cached after the first time it occurs (actually this is the case in the new I/O library in 5.02, I'm not sure about 5.00.2). So it's reasonable to do a sleep/read loop similar to 'tail -f'.
Odd! Not only does it not have that behaviour in ghc-4.0[48], it also didn't seem to work when I tried coding it that way in C. Maybe tells you more about my C skills... ;-) I'll wait until the stable ghc-5.02, and then try this again, just in case this has indeed changed significantly recently, rather than it just being me missing something obvious. Cheers&thanks, Alex.
8667
Age (days ago)
8667
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alex Ferguson