Re: Trouble reading bytes

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

Ah, the joy of Topica. What happened to the e-mail that I sent in reply 
that actually had anything important in it??

>From: Derek Parnell <ddparnell at bigpond.com>
>Subject: Re: Trouble reading bytes
>
>
>----- Original Message -----
>From: "Elliott Sales de Andrade" <quantum_analyst at hotmail.com>
>To: "EUforum" <EUforum at topica.com>
>Subject: Re: Trouble reading bytes
>
> >
> > >From: Derek Parnell <ddparnell at bigpond.com>
> > > >From: dstanger at belco.bc.ca
> > <snip>
> >
> > >The "puts" routine sends BYTES to the specified device, not SEQUENCES.
> >
> > You mean I can't do puts(1, "a sequence that happens to be a string") ??
> > That is a sequence after all.
> >
> > I believe Derek meant:
> >
> > The "puts" routine sends a sequence of BYTES to the specified device, 
>not a
> > sequence of SEQUENCES.
> >
> > which, BTW, David was not doing...
> >
>
>No, that is NOT what I meant at all. I meant what I said.
>
>puts() ONLY WRITES BYTES!
>
>Try this...
>
>   puts(fn, {400,500,600,700})
>
>You should get written out to 'fn' 4 BYTES - not a Sequence containing 4 
>bytes. The four bytes are #90, #F4, #58, #BC.
>
> > You mean I can't do puts(1, "a sequence that happens to be a string") ??
>
>Of course you can. But each element is converted to a byte value first 
>before outputting it.
>
>
>--
>Derek
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu