OK .. I was assuming from some of the comments that this was an extension to
OVER. Sounds as though ARRAY could/should be a keyword in there somewhere,
if that's what's going on.
loop value z index i arrayof x
(where one of value/index must be there). But there again, is 'makearray'
too long to code when needed?
Mike
_____
From: Rick McGuire [mailto:[email protected]]
Sent: 13 October 2014 14:55
To: Open Object Rexx Developer Mailing List
Subject: Re: [Oorexx-devel] DISCUSS: #158 Add iteration over a
suppliertoDO/LOOP
That's one of the problems with DO OVER. The value assigned to the control
variable is not necessarily the value. The semantics here are to send a
makearray message to the expression object and then iterate over that. For
arrays, this results in iteration over a non-sparse version of the array,
with no relationship to the original indexes. For map collections,
makearray returns any array of index values...and supplier doesn't fit in
with any of these semantics.
Because of this, I'd really prefer a syntax is that is clear that this is
not the same mechanism, thus not use the OVER keyword.
Your suggestion also assumes the programmer always needs the value bit. I'd
prefer this be a little customizable.
Rick
On Mon, Oct 13, 2014 at 9:46 AM, Mike Cowlishaw <[email protected]> wrote:
Maybe something completely keyword based?
loop with index i item v over x
The first variable name gets the value; probably worth keeping that. So all
that needs to be added is the index ? So, perhaps:
loop varo index vari over x
(maybe with a more general term for the keyword 'index', 'key', perhaps).
Mike
----------------------------------------------------------------------------
--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://p.sf.net/sfu/Zoho
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://p.sf.net/sfu/Zoho
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel