Re: [fpc-pascal] class operator enumerator

2019-04-24 Thread Sven Barth via fpc-pascal
Am 24.04.2019 um 15:31 schrieb Ryan Joseph: On Apr 24, 2019, at 12:30 AM, Ben Grasset 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/rec

Re: [fpc-pascal] class operator enumerator

2019-04-24 Thread Ryan Joseph
> On Apr 24, 2019, at 12:30 AM, Ben Grasset 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 G

Re: [fpc-pascal] class operator enumerator

2019-04-23 Thread Ben Grasset
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

[fpc-pascal] class operator enumerator

2019-04-23 Thread Ryan Joseph
Is "class operator enumerator” supposed to work or is this a bug that it compiles but doesn’t do anything? Seems like it should work. === {$mode objfpc} {$modeswitch advancedrecords} program test; type TArrayEnumerator = class public type TArrayValue = integ