When a method or a function that normally returns a collection object, returns .nil as an exceptional case, it would often come handy if
do item over .nil
worked as an empty loop.
(I assume that's equivalent to asking .nil~makeArray to return a zero-size array)
Anonymous
Hi Erich,
I do not understand what you want to achieve with this. Do you want to bind the variable item to the value .nil for one iteration or do you want to the loop to do nothing at all? The first case can be achieved by iterating over a supplier that just supplies a single value, .nil. The latter would not make much sense either I think.
Best,
Moritz
I suspect Erich's desire is .nil will go for zero iterations. This covers the case where a method return value is either an array of items or .nil if there are no items available.
Here's an example. It would be nice (and more REXX-ish?) if you could code:
without having to protect the do .. loop with:
Above RFE was only one of the have-to-check-nil situations, I sometimes run
into. Another one might be:
Again, you have to protect the "if" with "if date \== .nil .:"
On Thu, Apr 23, 2015 at 3:32 PM, Rick McGuire bigrixx@users.sf.net wrote:
Related
Feature Requests: #661