View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0037865 | FPC | Documentation | public | 2020-10-03 14:10 | 2020-10-03 16:07 |
Reporter | Kai Burghardt | Assigned To | Michael Van Canneyt | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | x86_64 | OS | GNU/Linux | ||
Product Version | 3.2.0 | ||||
Fixed in Version | 3.3.1 | ||||
Summary | 0037865: Reference Guide: explicit indices in enumeration type definitions requires Delphi-style `=` in Delphi modes | ||||
Description | When specifying explicit indices for enumeration type members, `:=` is not allowed, but only `=`. | ||||
Steps To Reproduce | This fails: {$mode Delphi} type number = (zero := 0); You have to use a plain `=` | ||||
Additional Information | See also 0037444 | ||||
Tags | No tags attached. | ||||
Fixed in Revision | 1757. | ||||
FPCOldBugId | |||||
FPCTarget | 3.2.2 | ||||
Attached Files |
|
|
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. |
|
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. |
|
Amended, thanks for reporting. |
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 |