[fpc-pascal] Generic enumerators

Henry Vermaak henry.vermaak at gmail.com
Mon May 10 14:33:27 CEST 2010


On 10 May 2010 13:27, Anthony Walter <sysrpl at gmail.com> wrote:
> Is the keyword "generic" really needed here:
>
> type generic TEnumerator<TValue, TIterator> = class
>
> - should be -
>
> type TEnumerator<TValue, TIterator> = class
>
> It looks completely unnecessary and I've never seen a situation in pascal
> where anything but an identifier follows the keyword type. Whomever came up
> with the idea was probably more interested in making the feature easy to
> implement in the compiler rather than more natural for pascal programmers.

I believe you have raised this already?  I'm sure the fpc team will
welcome your patches.

Henry



More information about the fpc-pascal mailing list