just for fun: pop quiz

Robert Sneidar slylabs13 at me.com
Sun Feb 3 15:49:36 EST 2013


Once again, Jacque puts the kibosh on our "it's a bug!" session by injecting facts! <sigh> You can't have any fun around here anymore. ;-)

Bob


On Feb 3, 2013, at 12:40 PM, J. Landman Gay wrote:

> 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




More information about the use-livecode mailing list