The default readable port in a for-each?

Consider:

  <p:for-each>
    <p:identity name="first"/>
    <p:identity name="second"/>
  </p:for-each>

The description of p:for-each says:

  The environment inherited by the contained steps of a p:for-each is
  the inherited environment with these modifications:
    * The port named “current” on the p:for-each is added to the
      readable ports.
    * The port named “current” on the p:for-each is made the default
      readable port.

In the case of the identity step named "first", this clearly has the
desired consequence: first reads the current port of the loop.

In the case of the identity step named "second", to what is the
"source" port bound?

I think our spec currently says that it's bound to the current port of
the loop, but I'm not sure that's what we want.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Language is by its very nature a
http://nwalsh.com/            | communal thing; that is, it expresses
                              | never the exact thing but a
                              | compromise--that which is common to
                              | you, me, and everybody.--T. E. Hulme

Received on Tuesday, 28 October 2008 11:27:26 UTC