Newsgroups: comp.lang.apl
Path: watmath!watserv1!utgpu!news-server.csri.toronto.edu!torsqnt!jtsv16!blister!itcyyz!yrloc!hui
From: hui@yrloc.ipsa.reuter.COM (Roger Hui)
Subject: Re: Is hook really necessary?
Message-ID: <1991Jul5.034830.29042@yrloc.ipsa.reuter.COM>
Organization: Iverson Software Inc.
References: <ROCKWELL.91Jul3181219@socrates.umd.edu> <1991Jul4.045226.5150@watmath.waterloo.edu> <ROCKWELL.91Jul4024805@socrates.umd.edu>
Date: Fri, 5 Jul 91 03:48:30 GMT

In article <ROCKWELL.91Jul4024805@socrates.umd.edu> rockwell@socrates.umd.edu (Raul Rockwell) writes:
>For example:
>   foo =. + 'x. y.' : 2 +
>   foo 3
>value error
>
>And the display form of 'foo' has some non-standard characters in it
>(that, I think, is a bug -- and, it can't be that hard to substitute
>the standard two character names, can it?).

This is indeed a bug, and had been fixed.

>For the sake of completeness, here is how foo would have to be written
>to get the definition it would have had in earlier versions of J:
>   foo =. + '''x.''~f.  ''y.''~f.' : 2 +

Actually, the earlier behaviour can be obtained by
   foo =. + '(x. y.) f.' : 2 +

-----------------------------------------------------------------
Roger Hui
Iverson Software Inc., 33 Major Street, Toronto, Ontario  M5S 2K9
(416) 925 6096

