XHOLD

( xchar -- )

Adds xchar to the picture numeric output string. An ambiguous condition exists if XHOLD executes outside of a <# #> delimited number conversion.

See:

Implementation:

CREATE xholdbuf 8 ALLOT

: XHOLD ( xchar -- ) xholdbuf TUCK XC!+ OVER - HOLDS ;

ContributeContributions

BerndPaysanavatar of BerndPaysan Prepend, not addExample2018-06-28 11:05:25

Same as with HOLDS, this should read “add … to the beginning of the pictured number output buffer”.

Test (UTF-8):

T{ 0. <# 123. #s 606D xhold #> s" ?123" compare -> 0 }T
Reply