Am 24.04.2019 um 15:31 schrieb Ryan Joseph:

On Apr 24, 2019, at 12:30 AM, Ben Grasset <operato...@gmail.com> wrote:

Seems like it's mixed up in some way with the FPC-style enumerator operator, so the 
"class" version is recognized but not actually implemented currently or 
something.

The normal way for classes/records/objects is to implement a GetEnumerator 
function, anyways. Here's an expanded-on version of your example, using your 
generic constants feature:
I think they just forget to disable the operator for records but I believe the 
operator function works as intended however.
It should probably best be forbidden for class operators considering there is the GetEnumerator way to add one (and it even works with helpers).

Regadrs,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to