[SLOF] [PATCH v5 1/2] Fix output word

Segher Boessenkool segher at kernel.crashing.org
Wed Mar 28 04:54:30 AEDT 2018

On Tue, Mar 27, 2018 at 02:03:41PM +0200, Thomas Huth wrote:
> >> That is very problematic.  If the xt of term-io-emit already is the
> >> behaviour of emit, this will loop.
> I'm afraid to object Segher, but as far as I can see, this can not
> happen. The "[ ' emit behavior compile, ]" happens *while* the Forth
> word is compiled, and the first "' term-io-emit to emit" happens *after*
> the Forth word is compiled. So how should the term-io-emit XT end up in
> "emit" before the term-io-emit Forth word is compiled?

Exactly as you say for example: if it was done *before*.

This [ ... behavior ... ] stuff is very fragile.  It does not have
to be that way.

Why don't you set debug versions to the emit hook very early?  Why
won't that work?


More information about the SLOF mailing list