[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Re: NR (no ruler)
- Subject: Re: NR (no ruler)
- From: Carl Distefano cld@xxxxxxxx
- Date: Sat, 02 Feb 2008 16:18:37 -0500
Reply to note from Carl Distefano Sat, 02 Feb 2008
01:08:35 -0500
> Whoops, my bad. Contrary to what I said yesterday, you CANNOT
> manufacture a SUbroutine by concatenation...
Except by roundabout means. A SUbroutine *can* be manufactured by
concatenation using a *different* S/G from the S/G holding the SUb
itself -- which, of course, defeats the purpose of avoiding the use
of two S/Gs where one will do. Still, it's possible; here's an
illustration:
XPLeNCODE v2.0
b-gin [UNTITLED]
;*; Manufacture SUbroutine 01 by concatenation[cr|lf]{<}SX01,
{<}VA$NW{>}{>};*; Value of S/G 01 is 3 (for example)[cr|lf]{<
}SX02,"{<}SU01,[BX_]d nw="+{<}IS01{>}+"[Q2_]{>}"{>};*; Concat
enate SUb 01 (in S/G 02)[cr|lf]{<}PR(Hit a key to continue) S
/G02 = @02{>};*; Verify contents of S/G 02[cr|lf]{<}SX03,{<}R
K{>}{>};*; Pause[cr|lf]{<}PV02{>};*; Create SUb 01 (execute S
/G 02)[cr|lf]{<}SV02,{>};*; Zero out 02 (we no longer need it
)[cr|lf]{<}PR(Hit a key to finish) S/G 01 = @01{>};*; Verify{032}
contents of SUb 01[cr|lf]{<}SX03,{<}RK{>}{>};*; Pause[cr|lf]{
<}PRQ.E.D.{>}{<}EX{>}[cr|lf]
-nd
XPLeNCODE
Much simpler, though, to write
>+"Q2 ">;*;
and be done with it.
--
Carl Distefano
cld@xxxxxxxx