Dan Bron <[EMAIL PROTECTED]> wrote: Re: [Jgeneral] copulas: update vs. declare
> We can get pretty close to this behavior in the current version of J. I > just tossed together a pretty simple "Single Assigment J" script. Get it > here: http://www.jsoftware.com/svn/DanBron/trunk/environment/saj.ijs . > G is 22 NB. Define it > 22 OK. This is impressive. I had to do a double-take when I saw this. I didn't think it was possible to emulate the unquoted-name behavior of a copula, but it seems you can do so if the name is a verb or undefined. (This wouldn't work if it were a noun or an operator, but in this particular application that isn't important). Unfortunately, this can't be used to create read-only verbs or oprators, at least not transparently. I'm not sure exactly how you're doing the read-only magic specifically, but you should be able to transparently assign verbs this way if you make 'is' a conjunction, for example: avg is (+/ % #) or even '`plus minus' is +`- Perhaps even operators via '`at atop' is '@:';'@' -- Mark D. Niemiec <[EMAIL PROTECTED]> ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
