Re: Problems with GET.E

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

Roderick Jackson writes:
> Correct me if I'm wrong, but aren't several get() calls
> in a row supposed to return all of the objects that were
> printed to the file? ...

get() requires that there be at least one character of
whitespace (blank, tab or new-line) separating the
top-level objects in the file.

You can easily observe that this will likely be
necessary between two atoms,
e.g.
        111 222

but it shouldn't be necessary between
two sequences, or an atom and a sequence e.g.:

        145.999{1,2,3}
or
        {1,2,3}{4,5,6}

because the braces should be enough.
So why does get() require whitespace in *all* cases?

It was much easier to implement that way (it's a long story),
and I didn't think anyone would really mind.

> From what I can see, one way to do it
> would be to have print() put a space after every object
> it outputs.

What about the users of print() who don't want the
extra space? Is it that hard to add:
      puts(fn, ' ')
to your code?

Regards,
     Rob Craig
     Rapid Deployment Software
     http://www.RapidEuphoria.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu