[fpc-pascal] Forin Test
Paul Ishenin
webpirat at mail.ru
Sat Nov 7 13:42:55 CET 2009
Dariusz Mazur wrote:
> Where?
> Its work now with current compilator. Are You plan to disable this?
I made a typo: read 'I see *no* problems with this'.
>> for i in List using GetEnumerator(DoUpArgument)
>>
>> current "for i in List" will be just short form of "for i in List
>> using GetEnumerator"
> But this complicate both: source and compilator.
Why compilcate? I thought vice versa it will simplify the user source code.
> And second: You cant pass enumerator as param.
Maybe you understood me wrong? I proposed the 'using' keyword as an
extension to the current implementation. It would not be required. If
not used then it will work as now but if used then compiler will search
for the given identifier and use it instead of operator/GetEnumerator
method.
Best regards,
Paul Ishenin.
More information about the fpc-pascal
mailing list