Ed raised an interesting point in his comments. In that the reference
implementation uses the PAD. The standard makes a point of stating that
the PAD is for the application programmer, and that no standard word
will use it. Thus I have re-worked the reference implementation to
replace the escaped string in situ. While this is frowned on by the
standard, writing into source, it is allowed.
The change is actually fairly minor, it simple requires the definition
of readEscape to be replace with the following:
: readEscape
source >in @ /string
tuck over 1- dup >r
parse\"
nip - >in +!
r>
;
I have checked this on several system and they are all happy with it.
--
Peter Knaggs