[Gambas-user] Request for comments about a language change

B Bruen bbruen at ...2308...
Sun Jun 1 01:28:57 CEST 2014


> On Sat, May 31, 2014 at 2:38 PM, Benoît Minisini <
> gambas at ...1...> wrote:
> 
> > Hi people,
> >
> > Does anybody have an objection against the following change:
> >
> > "For Each Value In Enumeration" raise an error if `Enumeration` is NULL.
> >
> > I suggest that instead it does nothing, as if Enumeration was a void array.
> >
> > What do you think?
> >
> > --
> > Benoît Minisini
> >

So, :
100  Dim aTest As String[]
101  Dim sItem As String
102
103  For Each sItem In aTest
104    Print sItem
105  Next
106  Print aTest.Count

would just just fail at line 106 rather than 104?
No objections, I just cant see the point?

regards
Bruce
-- 
B Bruen <bbruen at ...2308...>




More information about the User mailing list