It should be the same bug that I found some years ago.
[Jprogramming] continue. inside select-case
http://www.jsoftware.com/pipermail/programming/2007-August/007688.html

Втр, 29 Мар 2011, Mark Niemiec писал(а):
> 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

-- 
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

Reply via email to