Mr. Sprague - an alternative way to unbox your variable is to use something like ;rtn to simply "raze" it: see "http://www.jsoftware.com/help/dictionary/d330.htm ". It depends on what you want to end up with. The ">rtn" formulation will give you a table, padded out as necessary with each row corresponding to an element of "rtn" if that's a vector.
Note that "1!:2]2" to output to screen is necessary only within a script; in immediate execution mode, 'Return value:', ;rtn or even just rtn works fine. This makes me think you may be using "printf"-style debugging which is not really necessary in an interpreted environment. You could turn on "break" before running your code with 13!:0]1 then simply enter the name of the item you wish to look at, as shown above, when your code stops because of an error or breakpoint. You can learn more about the other debugging commands under the documentation of the "13!:" family of foreign conjunctions. Good luck, Devon On Tue, Mar 23, 2010 at 11:01 PM, bill lam <[email protected]> wrote: > > for the other question, I guess it should be > ('return value:', >rtn) 1!:2(2) > > -- > regards, > ==================================================== > GPG key 1024D/4434BAB3 2008-08-24 > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
