Re: peek/poke

new topic     » goto parent     » topic index » view thread      » older message » newer message

Brian Broker wrote:

snip

>Syntax: poke(a, x)
>Description: If x is an atom, write a single byte value to memory address a.
>If x is a sequence, write a sequence of byte values to consecutive memory
>locations starting at location a.

snip

>I don't see how the manual could be more clear about the usage of peek and
>poke...  It seems quite straight-forward to me.
>-- Brian

Since we both know that sequences are essentially infinite in structure and
length, what does happen when you poke s where s ={"xxx","yyy","zzz"}.
Yes I know it can be checked, but it is anything but clear from the manual
what would happen in this situation, much less more complicated ones.
The examples carefully shy away from anything complex, and the definition
does not rule them out. I'll pull out one of Knuth's most famous quotes about
a piece of code that he had sent to another person. "I've only proven that it
is correct, not tested it." Yes, we do have to try things, but it would be nice
if the manual gave us a few clues ahead of time.

Everett L.(Rett) Williams
rett at gvtc.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu