david nicol (list subscriptions)
Thu, 10 Oct 2002 16:39:31 -0700
Hey, you're right! The error message then is a cascading side effect of specialcasing for(RANGE-EXPRESSION) to do an interation instead of an array generation. Funny that the word "iterator" did not appear in the 5.8.0 changes file Paul Kulchenko wrote: > Hi Garrett, > > >>1..5 are numeric literals. I would have expected an error like: >> >>Can't modify constant item in postincrement (++) at ... >> or >>Modification of a read-only value attempted at ... > > no. 1,2,3 are literals, but 1..5 is operator.