just for fun: pop quiz

J. Landman Gay jacque at hyperactivesw.com
Sun Feb 3 15:40:43 EST 2013


On 2/3/13 1:08 PM, Richard Gaskin wrote:

> Can you think of a circumstance in which you've already specified to
> read until EOF, and the command executes flawlessly just as you've asked
> it to, yet you still need to be notified that it reached EOF?

The "read from file" command is a subset of the generic "read" command 
which also includes reading from sockets and drivers (and by extension, 
reading from servers.) They all have the same syntax, and in the MC 
dictionary there's only one listing for them all. Because they are the 
same command internally, they all share the same values in the result.

In the case of sockets and drivers it is possible to read without error 
but not receive all the data due to communication issues. In that case 
you'd want to know if the read had paused or had really finished.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list