On Mon, Feb 21, 2011 at 8:13 PM, David Ward Lambert
<[email protected]> wrote:
> See also assigned come from and DON'T statements.

There's a dynamic come from?  Why didn't anyone tell me yet?  I'm
leaving J now for whatever intercal variant has it right now.  I
already have tcsh as my choice of shell because it supports goto, even
in an interactive session.

king:~/a/tmp> @ x=0
king:~/a/tmp> a:
king:~/a/tmp> echo $x
0
king:~/a/tmp> @ x++
king:~/a/tmp> if ($x < 10) then
king:~/a/tmp> goto a
1
2
3
4
5
6
7
8
9
if? endif
king:~/a/tmp>

Even dynamic gotos are supported this way.

king:~/a/tmp> @ x=0
king:~/a/tmp> b:
king:~/a/tmp> echo $x
0
king:~/a/tmp> @ x++
king:~/a/tmp> if ($x < 10) then
king:~/a/tmp> set l=b
king:~/a/tmp> else
else? set l=c
else? endif
king:~/a/tmp> goto $l
1
2
3
4
5
6
7
8
9
goto? c:
king:~/a/tmp>

Sadly, there's no come from builtin yet.

(This post is a joke.  I don't actually use tcsh.)

Ambrus
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to