[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sort



In article <b3fea13b58.fjgraute@xxxxxxxxx>,
   Fred Graute <fjgraute@xxxxxxxxx> wrote:
> No, because I've been very naughty. A StrongED text in memory looks like
> this:

> NL char 1 [NL char 2]
> -----------------------
> ....Text...............
> .........lives.........
> ...............here....
> -----------------------
> NL char 1 [NL char 2]

> The text is guarded by sentinel newlines at both ends to prevent things
> like searches from overrunning the start/end of text. These sentinel NLs
> are not part of the actual text.

> If the final line doesn't end with an in-text newline then the sentinel
> newline is used. This allows to sort to work correctly without the need
> to add a newline at end-of-text first.

> There's just a bit of massaging required to make sure it all works
> correctly.

Borrow a NL then pay it back at the end! Excellent!

Not that the feature bothered many of us I think!

Bat as for lateral thinking, there were a series of books on the subject
around 1967 by Edward de Bono. I couldn't understand what the fuss was about
except that the books made me realise that many others didn't think
the way I did. I've always used lateral thinking!

-- 
Richard Torrens.
http://StrongED.Torrens.org for StrongEDinstructions (in preparation) and mailing list archives