On Sat, 28 Mar 2009, Matthew Brand wrote:
> I wanted to make it so that I can call it like this:
> x ('nameofmethod' acollect) y
>
> ('nameofmethod' acollect) y
>
> e.g. If I had a collection C of objects that had a dyad method M which
> adds x and y and some internal variable, then to execute it in all
> members of C and get the result output as a boxed list I would use:
>
> 2 'M' acollect__C 5
IIUC the adverb acollect__C is to be executed inside the locale C, but
the resulting verb
'M' acollect__C
does not belong to C but to the current locale that executing this
sentence,
2 'M' acollect__C 5
in other words, that verb is defined as if in the current locale but
with same textual explicit definition given by 'M' acollect_C
so that unless C is in the search path of current locale, the internal
state of C can not be access.
My conjecture might be wrong, of course. ;-)
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩192 杜甫 詠懷古跡五首之三
群山萬壑赴荊門 生長明妃尚有村 一去紫臺連朔漠 獨留青塚向黃昏
畫圖省識春風面 環珮空歸月下魂 千載琵琶作胡語 分明怨恨曲中論
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm