[fpc-devel] for-in-index loop

Sven Barth pascaldragon at googlemail.com
Fri Jan 25 23:27:03 CET 2013


On 25.01.2013 22:44, Alexander Klenin wrote:
> On Sat, Jan 26, 2013 at 5:30 AM, Florian Klämpfl <florian at freepascal.org> wrote:
>> Where? Concrete code of a serious language! Not some "oh, yes, this
>> language has it and that as well"
>
> On Sat, Jan 26, 2013 at 7:34 AM, Florian Klämpfl <florian at freepascal.org> wrote:
>> No. I want to see a language which provides something like the  explicit
>> index keyword and not some tupel returning enumerator like python which
>> can be done already.
>
> Oh, I see. Please, state your questions more clearly -- there is no
> way I could infer
> the second question from the first one!
> There are two answers here:
> 1) If you would look at the examples I provided, you would notice that
> while Python
> (and C++ which I did not list) do use the concept of tuple, other
> listed languages do not.
>
> 2) Indeed, introducing tuples to Pascal might be an alternative
> solution. Below is a proposal:

Regarding tuples:
http://wiki.oxygenelanguage.com/en/Tuples

Regards,
Sven




More information about the fpc-devel mailing list