Tim,
These suggestions are very helpful. Thanks for posting them. And thanks to
Tom!!
Stan
-Original Message-
...
> printf22: func[str [string!] subs [block!] /local delim blk x][
> delim: "%s"
>
> ;;; this is not quite as good anymore
> ;;; with subs being circular final lengt
Hello List:
This was sent back to me OTL. Since I think it is a valuable
contribution on the subject of 'parse and advises regarding
some pitfalls, I'm posting this back to the list for archival
purposes and adding some comments.
Really good contribution.
Thanks Tom
t
* Stan Silver <[EMAIL PROTECTED]> [031222 15:59]:
>
> Tim,
>
> I'm relatively new to dialects, too, but I gave it a try.
Hi Stan:
Ahah! I think you nailed it by adding the 'skip in printf2
- that is one thing I was missing
I made one more change, so that 'subs is wrapped backed
to the be
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [031222 16:12]:
>
> Hi Tim,
>
> > I'm a parse-a-phobic, and use it infrequently.
> > The following function uses 'parse dialect, and appears
> > to work, but I'd appreciate a critique from anyone on
> > it. Given my unfamiliarity with parse, you ju
Hi Tim,
> I'm a parse-a-phobic, and use it infrequently.
> The following function uses 'parse dialect, and appears
> to work, but I'd appreciate a critique from anyone on
> it. Given my unfamiliarity with parse, you just might
> be preventing me from chasing a bug sometime:
I'm complete
Tim,
I'm relatively new to dialects, too, but I gave it a try.
Though the gurus can probably do it better, I have discovered that the rule
copy x skip (append block x)
works like an "else do nothing" at the end of a string substituion parse.
I did get it to keep the s's, but my code can