Re: Qbasic Stuff/Wish List

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

Jiri wrote:

>> I finally converted my web page generator and
>> sent it off to Robert.
>
> Good. I just started to write my own, now I can relax and play some
> bridge instead.

But do you really want your pages to look like mine? smile

>     o = gets(handle)
>     while sequence(o) do
>         ...
>         o = gets(handle)
>     end while

Much neater, but I'd still prefer to do only one gets().

> This is not just unnecessarily slow, (for the reason stated above plus
> the functions overheads), it's also incorrect, because it generates a
> phony line sequence.

I'd be just as happy if all the functions continued to behave *exactly* as
they do, but that Robert added an eof() function.

> Yeah. This is the kind of thing I have been advocating for years.
> Python slices have a beautiful logic behind them, but I am afraid it's
> too late for us and for Robert to read the book now ...;)

I suspect you are correct. But I'm going to try using left/right/mid from
now on - as I mentioned, it's worth the overhead if the code is less prone
to error.

> For heaven's sake, David, why [would you want C++ comments]?!

I've never really gotten used to the '--' notation, and after doing even the
smallest amount of C coding, I fall back into the C++ notation again. It's
easier to type, and every other C-derived language I can think of uses it as
well. I see no special reason for using '--', and the precedent is set for
'//'.

Hope your teeth are doing better!

-- David Cuny

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

Search



Quick Links

User menu

Not signed in.

Misc Menu