On 2 May 2017, 16:10:29, Mike Harding wrote:

> I thought I remembered an idiom in specs for specifying field selections
> when the field separation character wasn't known before hand, but now can't
> find or seem able to reinvent it.

Indeed, but 'autofield' escaped the book. There was a bug in it that now is
fixed. So I put it on my list to have a closer look and maybe document it.

 An enhancement in 1.1.8 that was never documented and possibly should
 not be is that an inputRange can also be an AUTOField (also AField).
 This specifies that the first character of the record is used as the
 field separator.  This character (and a matching one at the end of the
 record if there is one) is ignored in the field counting.  Thus, for
 example to translate the variable name in the input to VARSET to
 uppercase: |xlate af 1|varset direct

For the record and for the curious plumbers; the problem that I have with
it is that a separator at the end of the record is optionally removed,
which causes surprises for fields relative to the end (e.g. af -1).
There may have been too much water through the pipe to fix that now.

Sir Rob the Plumber

Reply via email to