View Issue Details

IDProjectCategoryView StatusLast Update
0037865FPCDocumentationpublic2020-10-03 16:07
ReporterKai Burghardt Assigned ToMichael Van Canneyt  
Status resolvedResolutionfixed 
Product Version3.2.0 
Fixed in Version3.3.1 
Summary0037865: Reference Guide: explicit indices in enumeration type definitions requires Delphi-style `=` in Delphi modes
DescriptionWhen specifying explicit indices for enumeration type members, `:=` is not allowed, but only `=`.
Steps To ReproduceThis fails:

{$mode Delphi}
        number = (zero := 0);

You have to use a plain `=`
Additional InformationSee also 0037444
TagsNo tags attached.
Fixed in Revision1757.
Attached Files


Sven Barth

2020-10-03 14:40

manager   ~0126059

If not mentioned otherwise the documentation is written with regards to modes FPC and ObjFPC.

That said it should be mentioned that FPC accepts both := and = in any mode except mode Delphi.

Kai Burghardt

2020-10-03 15:10

reporter   ~0126060

Huh. I’m having difficulties finding sources for your claim. Can you point out the passage corroborating your statement? I re-read the top sections of the Reference. That’s where I would expect such fundamental issues.

It’s already mentioned that both `:=` and `=` are accepted, however the current wording doesn’t point out *only* `=` is valid in the Delphi modes.

Michael Van Canneyt

2020-10-03 16:07

administrator   ~0126061

Amended, thanks for reporting.

Issue History

Date Modified Username Field Change
2020-10-03 14:10 Kai Burghardt New Issue
2020-10-03 14:10 Kai Burghardt Status new => assigned
2020-10-03 14:10 Kai Burghardt Assigned To => Michael Van Canneyt
2020-10-03 14:40 Sven Barth Note Added: 0126059
2020-10-03 15:10 Kai Burghardt Note Added: 0126060
2020-10-03 16:07 Michael Van Canneyt Status assigned => resolved
2020-10-03 16:07 Michael Van Canneyt Resolution open => fixed
2020-10-03 16:07 Michael Van Canneyt Fixed in Version => 3.3.1
2020-10-03 16:07 Michael Van Canneyt Fixed in Revision => 1757.
2020-10-03 16:07 Michael Van Canneyt FPCTarget => 3.2.2
2020-10-03 16:07 Michael Van Canneyt Note Added: 0126061