[Jprogramming] can i trust `:0 to always execute left to right?
Michal Wallace
michal.wallace at gmail.com
Thu Sep 30 18:15:18 UTC 2021
Today I discovered that `:0 executes the gerund in series from left to
right.
The execution order isn't specified in the docs (as far as I can tell), so
I wonder if it's an implementation detail subject to change, or if I can
rely on this?
Almost all of the cases where I want '..' as a statement handler have
to do with executing small imperative niladic instructions in sequence,
and it seems like `:0'' handles that perfectly:
NB. after loading tangentstorm/j-kvm/vt:
(bg at 16b111122)`(fg at _15)`cscr`(goxy at 5 5)`(puts@('hello',CRLF))`:0''
(set the colors, clear the screen, go to position 5,5 and emit 'hello'...
in that order!)
So... Can I count on this execution order?
More information about the Programming
mailing list