James Vega wrote:
On Tue, Apr 25, 2006 at 02:21:07PM -0400, Charles E Campbell Jr wrote:
I know this is a "late date", but I think it would be helpful if
for var in list
...
endfor
would complete with var= "". For example where this might come in handy:
for home in split(&rtp,',')
if isdirectory(home) | break | endif
endfor
This seems like a rather arbitrary imposition. There could be
legitimate reasons for var getting the value "" in a loop (such as
looping over the results from matchlist()) which would be confused by
adding an additional loop with var = "".
I'm afraid I don't understand what you mean about adding an additional
loop; I don't see where
having the home variable take on an "empty" meaning (whether "" or [])
when the loop terminates
would have much to do with any additional loop. Its true that an any
empty condition could be
legitimately in a list, though. It still might be handy to have a
standard setting (such as "" or []) at
end-of-for-loop without a break.
Regards,
Chip Campbell