[Cuis-dev] Fix for nil cursor

Phil B pbpublist at gmail.com
Thu Sep 19 12:21:28 PDT 2019


I went with lazily initializing the cursor instances because only ~1/3 of
them ever get used in normal operation.  I think the rest of them date back
to ST-80 but are no longer used.  So this way they're still available for
anyone interested and out of the way for everyone else.

On Thu, Sep 19, 2019 at 10:54 AM <ken.dickey at whidbey.com> wrote:

> On 2019-09-18 17:31, Phil B wrote:
> ..
> > How about we do the attached instead to try to eliminate all cases of
> > nil being returned? ...
>
> Perhaps more simple to do directly:
>
> Cursor>>
> cursorAt: cursorKey
>
>    ^(CursorDict at: cursorKey
>           ifAbsent: [ self defaultCursor ])
>
> $0.02,
> -KenD
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20190919/3b0da091/attachment.htm>


More information about the Cuis-dev mailing list