After beating my head against the wall trying unsuccessfully to debug some simple code, I think I found what seems to be a bug in J's control structure handling. It seems like continue. behaves like break. when inside a select. (I have tried this on Windows 4.06, 5.04, 6.02, 7.02 and Mac 6.02, and all exhibit this problem)
The dictionary says continue. may be used within a for. while. or whilst. to go to the top of the innermost such enclosing structure. I would thus expect that the continue. would leave the select. and iterate through the next for_i. but it stops iterating completely. The following illustrates this. 3 : 'for_i. i.3 do. smoutput 100+i select. i case. 1 do. continue. end. smoutput 200+i end.' 0 100 200 101 (I would expect to see 102 and 202 here). -- Mark D. Niemiec <[email protected]> ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
