Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Prograph Trivia

6 views
Skip to first unread message

Mark Pearse

unread,
May 30, 2003, 9:01:04 AM5/30/03
to
I was surprised to find that it is possible to apply both inject and
loop controls to the same input of an operation. One supplies the name
of the first method to the operation, and thereafter (one of) the
outputs of the called method must be the name of the method to be
executed next. That is to say, the loop can execute a different method
for each iteration!

Can anyone

a) Think of a good application for this

b) Tell me if this was designed into the language, or just happened

Mark

John Heaney

unread,
May 30, 2003, 12:20:51 PM5/30/03
to
In article <3ED75610...@skynet.be>,
Mark Pearse <mark....@skynet.be> wrote:

I would say that it is something they didn't specifically design out of
the language. I do believe it must have been a conscious decision,
though, because the partition control is mutually exclusive with the
inject. The menu item itself reflects this, so somebody had to have
explicitly coded that behavior. Note that you can also combine it with
the List annotation, so in one case have a pre-defined list of methods
you can call and, in the other, each method determines which method is
called next.

I don't have a suggestion for using it.

----
John S. Heaney
voice & fax (401) 438-4288
I don't train in Aikido to protect myself from the world, but to protect the world from me.

0 new messages