• When is there ever a difference between \ and REFILL ?

    From none) (albert@21:1/5 to All on Thu Mar 2 14:40:21 2023
    Assume we have an word ?EOF that signifies the end of the input
    stream.
    Can we now define REFILL as
    : REFILL POSTPONE \ ?EOF 0= ;

    Note that this would be more general, because it works if the
    whole source file is slurped into memory.

    Groetjes Albert
    --
    Don't praise the day before the evening. One swallow doesn't make spring.
    You must not say "hey" before you have crossed the bridge. Don't sell the
    hide of the bear until you shot it. Better one bird in the hand than ten in
    the air. First gain is a cat spinning. - the Wise from Antrim -

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From minforth@arcor.de@21:1/5 to none albert on Thu Mar 2 07:06:52 2023
    none albert schrieb am Donnerstag, 2. März 2023 um 14:40:24 UTC+1:
    Assume we have an word ?EOF that signifies the end of the input
    stream.
    Can we now define REFILL as
    : REFILL POSTPONE \ ?EOF 0= ;

    Note that this would be more general, because it works if the
    whole source file is slurped into memory.

    This wouldn't work for blocks where \ just discards the rest of the
    line (by advancing >IN) but does not refill the block buffer.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)