Re: [fpc-pascal] No type info available for this type (Enumerated type with constant assignment)

2018-07-23 Thread Martok
Am 23.07.2018 um 19:47 schrieb Sven Barth via fpc-pascal: > Though you'll get an access violation if you use a value that's not part of > the > enum (in the example this will happen when the loop reaches the value 3). Not an AV - an IOError, so it's easy and safe to catch. I use stuff like this,

Re: [fpc-pascal] Operator overload bug

2018-07-23 Thread Sven Barth via fpc-pascal
Ryan Joseph schrieb am Mo., 23. Juli 2018, 17:35: > > > > On Jul 23, 2018, at 12:00 AM, Sven Barth via fpc-pascal < > fpc-pascal@lists.freepascal.org> wrote: > > > > Yes, it's a bug, so please report it. > > Thanks, reported. The severity is “minor” which I guess is correct. > "Minor" is the def

Re: [fpc-pascal] No type info available for this type (Enumerated type with constant assignment)

2018-07-23 Thread Sven Barth via fpc-pascal
Martok schrieb am Mo., 23. Juli 2018, 17:15: > Am 23.07.2018 um 17:05 schrieb Sven Barth via fpc-pascal: > > Is this kind of enumerated type with constant assignment not > supported > > by FPC 3.0.4? > > > >TMonthType = (January=1, February, May=5,June, July); > > > > > > The enum

Re: [fpc-pascal] Operator overload bug

2018-07-23 Thread Ryan Joseph
> On Jul 23, 2018, at 12:00 AM, Sven Barth via fpc-pascal > wrote: > > Yes, it's a bug, so please report it. Thanks, reported. The severity is “minor” which I guess is correct. https://bugs.freepascal.org/view.php?id=34021 Regards, Ryan Joseph _

Re: [fpc-pascal] No type info available for this type (Enumerated type with constant assignment)

2018-07-23 Thread Martok
Am 23.07.2018 um 17:05 schrieb Sven Barth via fpc-pascal: > Is this kind of enumerated type with constant assignment not supported > by FPC 3.0.4? > >    TMonthType = (January=1, February, May=5,June, July); > > > The enumeration type itself is supported, however TypeInfo() and thus

Re: [fpc-pascal] No type info available for this type (Enumerated type with constant assignment)

2018-07-23 Thread Sven Barth via fpc-pascal
Dennis schrieb am Mo., 23. Juli 2018, 12:24: > Is this kind of enumerated type with constant assignment not supported > by FPC 3.0.4? > >TMonthType = (January=1, February, May=5,June, July); > The enumeration type itself is supported, however TypeInfo() and thus GetEnumName() and friends are

Re: [fpc-pascal] No type info available for this type (Enumerated type with constant assignment)

2018-07-23 Thread Michael Van Canneyt
On Mon, 23 Jul 2018, Dennis wrote: I am trying out the examples at http://wiki.freepascal.org/Enumerated_types but The following simple program will raise compiler error "No type info available for this typ" I am using Lazarus 1.8.0  FPC 3.0.4   x86_64-Win64-win32/win64 program testenum;

[fpc-pascal] No type info available for this type (Enumerated type with constant assignment)

2018-07-23 Thread Dennis
I am trying out the examples at http://wiki.freepascal.org/Enumerated_types but The following simple program will raise compiler error "No type info available for this typ" I am using Lazarus 1.8.0  FPC 3.0.4   x86_64-Win64-win32/win64 program testenum; uses typinfo, classes, sysutils; type