Re: just for fun: pop quiz

2013-02-04 Thread Mark Wieder
Jerry Jensen writes: > >> On 2/3/13 3:08 PM, Mark Wieder wrote: > > Yeah, interesting point. I'm not sure what EOF means in that case > > either. Is that "I received an EOF char from the port"? > > I don't think EOF is meaningful with a serial driver. The closest character is Ctrl-D, EOT, end of

Re: just for fun: pop quiz

2013-02-03 Thread Jerry Jensen
On Feb 3, 2013, at 2:49 PM, Mark Wieder wrote: > Jacque- > > Sunday, February 3, 2013, 1:51:24 PM, you wrote: > >> On 2/3/13 3:08 PM, Mark Wieder wrote: >>> Jacque- >>> >>> Sunday, February 3, 2013, 12:40:43 PM, you wrote: >>> In the case of sockets and drivers it is possible to read wit

Re: just for fun: pop quiz

2013-02-03 Thread Mark Wieder
Jacque- Sunday, February 3, 2013, 1:51:24 PM, you wrote: > On 2/3/13 3:08 PM, Mark Wieder wrote: >> Jacque- >> >> Sunday, February 3, 2013, 12:40:43 PM, you wrote: >> >>> In the case of sockets and drivers it is possible to read without error >>> but not receive all the data due to communication

Re: just for fun: pop quiz

2013-02-03 Thread J. Landman Gay
On 2/3/13 3:08 PM, Mark Wieder wrote: Jacque- Sunday, February 3, 2013, 12:40:43 PM, you wrote: 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

Re: just for fun: pop quiz

2013-02-03 Thread Mark Wieder
Jacque- Sunday, February 3, 2013, 12:40:43 PM, you wrote: > 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. I was about to post the

Re: just for fun: pop quiz

2013-02-03 Thread Robert Sneidar
Once again, Jacque puts the kibosh on our "it's a bug!" session by injecting facts! 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 s

Re: just for fun: pop quiz

2013-02-03 Thread J. Landman Gay
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 g

Re: just for fun: pop quiz

2013-02-03 Thread Peter Haworth
I ran into this a few weeks ago when I was having problems reading a file. Turned out it was because I should have been doing a binary read, but seeing EOF in the result made me think I'd run into some sort of error like an unexpected EOF or something - wasted a couple of hours trying to track tha

Re: just for fun: pop quiz

2013-02-03 Thread Robert Sneidar
I think one of my guesses would have actually made more sense. Have the result return the number of characters read. That way you could check for zero in the result, and if not, you have the size of your chunk ready to go. But EOF in the result is surprising. It's hard to imagine the developer l

Re: just for fun: pop quiz

2013-02-03 Thread Monte Goulding
On 04/02/2013, at 6:08 AM, 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? No -- Monte Goulding M E R Gould

Re: just for fun: pop quiz

2013-02-03 Thread Richard Gaskin
Jerry Jensen wrote: >>> On 03/02/2013, at 11:36 AM, Richard Gaskin wrote: >>> Without looking in the Dictionary, what would you expect the value of tResult to be after successful execution of: open file tValidFilePath for read read from file tValidFilePath until EOF

Re: just for fun: pop quiz

2013-02-03 Thread Dave Cragg
I had a vague memory of this and checked in an old script and found the following: read from file laFile[pUrl] for 4096 if the result <> empty and the result <> "eof" then ... Dave On 3 Feb 2013, at 00:36, Richard Gaskin wrote: > Without looking in the Dictionary, what would you expect the v

Re: just for fun: pop quiz

2013-02-02 Thread Robert Sneidar
Wait... the number of characters read? On Feb 2, 2013, at 4:36 PM, Richard Gaskin wrote: > Without looking in the Dictionary, what would you expect the value of tResult > to be after successful execution of: > > open file tValidFilePath for read > read from file tValidFilePath until EOF > put t

Re: just for fun: pop quiz

2013-02-02 Thread Robert Sneidar
empty On Feb 2, 2013, at 4:36 PM, Richard Gaskin wrote: > Without looking in the Dictionary, what would you expect the value of tResult > to be after successful execution of: > > open file tValidFilePath for read > read from file tValidFilePath until EOF > put the result into tResult > close fi

Re: just for fun: pop quiz

2013-02-02 Thread Mark Schonewille
EOF -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.

Re: just for fun: pop quiz

2013-02-02 Thread Jerry Jensen
Me too. ;-( On Feb 2, 2013, at 4:39 PM, Monte Goulding wrote: > :-( > > On 03/02/2013, at 11:38 AM, Monte Goulding > wrote: > >> empty? >> >> On 03/02/2013, at 11:36 AM, Richard Gaskin >> wrote: >> >>> Without looking in the Dictionary, what would you expect the value of >>> tResult to

Re: just for fun: pop quiz

2013-02-02 Thread Jerry Jensen
Me too. empty? .Jerry On Feb 2, 2013, at 4:38 PM, Monte Goulding wrote: > empty? > > On 03/02/2013, at 11:36 AM, Richard Gaskin wrote: > >> Without looking in the Dictionary, what would you expect the value of >> tResult to be after successful execution of: >> >> open file tValidFilePath fo

Re: just for fun: pop quiz

2013-02-02 Thread Monte Goulding
:-( On 03/02/2013, at 11:38 AM, Monte Goulding wrote: > empty? > > On 03/02/2013, at 11:36 AM, Richard Gaskin wrote: > >> Without looking in the Dictionary, what would you expect the value of >> tResult to be after successful execution of: >> >> open file tValidFilePath for read >> read fro

Re: just for fun: pop quiz

2013-02-02 Thread Monte Goulding
empty? On 03/02/2013, at 11:36 AM, Richard Gaskin wrote: > Without looking in the Dictionary, what would you expect the value of tResult > to be after successful execution of: > > open file tValidFilePath for read > read from file tValidFilePath until EOF > put the result into tResult > close

just for fun: pop quiz

2013-02-02 Thread Richard Gaskin
Without looking in the Dictionary, what would you expect the value of tResult to be after successful execution of: open file tValidFilePath for read read from file tValidFilePath until EOF put the result into tResult close file tValidFilePath -- Richard Gaskin Fourth World LiveCode training