Newsgroups: comp.lang.apl
Path: watmath!watserv2.uwaterloo.ca!torn!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!yale!gumby!ursa!ursa!abalje47
From: abalje47@ursa.calvin.edu (Alan Baljeu)
Subject: $: (self-reference) difficulties
Message-ID: <abalje47.727925543@ursa>
Keywords: J
Sender: news@calvin.edu
Organization: Calvin College
Date: Mon, 25 Jan 1993 01:32:23 GMT
Lines: 36

J6   Copyright (c) 1990-1992, Iverson Software Inc.  All Rights Reserved.

	NB. The following four lines were copied (cut and paste) from
	NB. tut19.js which I got at watserv1.waterloo.edu from the file
	NB. /languages/apl/j/tutorial.tar.  It was placed there in March,
	NB. while the executable arrived in October '92

   a=. '$.=. 2-0=y.' ; '1'
   b=. 'y. * $: y.-1'
   factorial=. (a,<b) : ''
   factorial 5
limit error
[2] y. * $: y.-1
	NB. The above is my problem
   factorial
+------------+-++
|$.=. 2-0=y. |:||
|1           | ||
|y. * $: y.-1| ||
+------------+-++
	NB. A simplified example:
   b =. '$:0'
   test =. (a,<b) : ''
   test
+-----------+-++
|$.=. 2-0=y.|:||
|1          | ||
|$:0        | ||
+-----------+-++
   test 2
limit error
[2] $:0        
   NB. okay, so what's wrong with $: ?  
--
			Alan Baljeu
This signature is.
