Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-09

Multiple enumerators per class

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner

Hi all,

I found the Wiki page about the new for-in loop and found a misinformation. It stated wrongly that it is not possible to have multiple enumerators per class. It even gave a proposal for a new feature that did not add anything new.

I added an example how to add a second enumerator to a class:

http://wiki.freepascal.org/for-in_loop#Multiple_enumerators_for_one_class

IMO the proposal was misleading so I deleted it. I hope this is ok. If not, I will restore it.

Mattias

Flávio Etrusco
to Mattias Gaertner
Mattias Gaertner wrote 16 lines
Hi all, I found the Wiki page about the new for-in loop and found a misinformation. It stated wrongly that it is not possible to have multiple enumerators per class. It even gave a proposal for a new feature that did not add anything new. I added an example how to add a second enumerator to a class: http://wiki.freepascal.org/for-in_loop#Multiple_enumerators_for_one_class IMO the proposal was misleading so I deleted it. I hope this is ok. If not, I will restore it. Mattias

How can you use multiple enumerators? I searched it recently and only found that wiki page ;-)

Best regards,
Flávio

Mattias Gaertner
to Flávio Etrusco
Show quoted text 21 lines
On Thu, Sep 15, 2011 at 6:37 PM, Mattias Gaertner wrote: > Hi all, > > I found the Wiki page about the new for-in loop and found a > misinformation. It stated wrongly that it is not possible to > have multiple enumerators per class. It even gave a proposal > for a new feature that did not add anything new. > > I added an example how to add a second enumerator to a class: > > http://wiki.freepascal.org/for-in_loop#Multiple_enumerators_for_one_class > > IMO the proposal was misleading so I deleted it. I hope this is > ok. If not, I will restore it. > > > Mattias How can you use multiple enumerators? I searched it recently and only found that wiki page ;-)

That's why I added the example. ;)

Mattias

Paul Ishenin
to Mattias Gaertner: I found the Wiki page about the new for-in loop and found a misinformation. It stated…
Mattias Gaertner wrote 13 lines
Hi all, I found the Wiki page about the new for-in loop and found a misinformation. It stated wrongly that it is not possible to have multiple enumerators per class. It even gave a proposal for a new feature that did not add anything new. I added an example how to add a second enumerator to a class: http://wiki.freepascal.org/for-in_loop#Multiple_enumerators_for_one_class IMO the proposal was misleading so I deleted it. I hope this is ok. If not, I will restore it.

The idea was to have multiple enumerators without creating a dummy class for each new.

Best regards,
Paul Ishenin.