[fpc-devel] New feature discussion: for-in loop
Michael Van Canneyt
michael at freepascal.org
Wed Oct 21 16:52:29 CEST 2009
On Thu, 22 Oct 2009, Alexander Klenin wrote:
> On Thu, Oct 22, 2009 at 01:44, Michael Van Canneyt
> <michael at freepascal.org> wrote:
>> What about
>>
>> function StepNext: Boolean; iterator 'movenext';
>> property TheCurrentValue: Integer; iterator 'current';
>
> You beat me by two minutes ;-)
>
>> function StepNext: Boolean; iterator nextvalue;
>> property TheCurrentValue: Integer; iterator currentvalue;
>
> I do not care much, but putting names in quotes may slightly simplify
> parser, IMO.
I think exactly the opposite, but I don't think the quotes are so relevant.
I have a preference for no quotes, but that is a matter of taste.
With quotes it would more resemble the "message" modifier...
Michael.
More information about the fpc-devel
mailing list