Found a problem with the SHOW command handler. If you change the "wrapper" you cannot set it back to its default later. Fixed in r13306
Found a problem with the SHOW command handler. If you change the "wrapper" you cannot set it back to its default later. Fixed in [[r13306]](https://https://sourceforge.net/p/oorexx/code-0/13306/)
Fix to permit restoring the default wrapper - [] - in the SHOW command handler.
Just a heads-up re. the samples: the Programmer Guide lists all of the sample programs in Appendix B with a brief description. I didn't see that listed as being updated.
I've taken this idea and expanded it a bit. The command environment is now called SHOW. In addition to the capability noted above to display variables (or expresions e.g. myArray~items) enclosed in brackets, it now 1) permits one to change the "wrapper" - '[<>]' when SHOW is the address environment would set (and remember) that "commands" are to be enclosed in '<' and '>' instead of '[' and ']'. The "command" '[]' would turn off "wrapping". And 2) the "command" SHOWVARS will display all of the caller's...
Yes, indeed! In fact, if you slightly modify the ECHO command method so that it "say's" '['command']' - the variable wrapped in square brackets - you can distinguish variables that are blank or the empty string as in Rony's pp() function.
Yes, indeed!
I've had a good look at the proposed documentation and it is excellent IMHO. Just another thought on a use for the Echo environment: if you are debugging a program and need to examine the values of a lot of variables as you are tracing, Echo can be helpful. If you register it when you start tracing (or before - it doesn't hurt to have it in your program if you don't use it), then when you get to the point where you want to see the values of a bunch of variables, enter "address echo" and then instead...