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,
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
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
> 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
_
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
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
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;
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