diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-09-12 06:31:50 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-09-12 06:31:50 -0700 |
commit | b2ef30979b89bc0e8fa5f90b8bfc7d09ed3e16c2 (patch) | |
tree | ee4ef132ba308778039784d494a7a4e2172e7cbc /txr.1 | |
parent | 000220fca51ff45aeb979ad766667fb3667f0b05 (diff) | |
download | txr-b2ef30979b89bc0e8fa5f90b8bfc7d09ed3e16c2.tar.gz txr-b2ef30979b89bc0e8fa5f90b8bfc7d09ed3e16c2.tar.bz2 txr-b2ef30979b89bc0e8fa5f90b8bfc7d09ed3e16c2.zip |
awk macro: more Awk-like treatment of prn args.
* share/txr/stdlib/awk.tl (sys:awk-state prn):
Use loop instead of simple interpolation, so that
we we can individually interpolate each arg into a
quasistring. This way if an arg is nil, it turns
into nothing rather than the word "nil".
* txr.1: Documented this behavior of prn.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -37778,6 +37778,20 @@ then a call to .code prn with no arguments is the default action. +Each argument +.meta form +is printed by conversion to a string, as if by the expression +.code `@val` +where +.code val +is some variable which holds the value produced by the +evaluation of +.metn form . +Thus if the value is +.codn nil , +the output for that argument is an empty string, rather than the text +.strn nil . + .coNP Macro @ next .synb .mets (next) |