View Issue Details

IDProjectCategoryView StatusLast Update
0031280FPCDocumentationpublic2017-01-27 21:55
ReporterThaddy de KoningAssigned ToMichael Van Canneyt 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.1.1Product Build35333 
Target Version3.2.0Fixed in Version3.1.1 
Summary0031280: Section 3.1 of the reference guide seems incorrect regarding ordinal types
Description"3.1.1 Ordinal types
With the exception of int64, qword and Real types, all base types are ordinal types. Ordinal types
have the following characteristics:"
(Page 24 in the pdf version)

- int64 and qword are no longer records
- real is now an alias for double, which has never been an ordinal type?
Steps To ReproduceUse int64 or qword as an ordinal type.
TagsNo tags attached.
Fixed in Revision1382
FPCOldBugId
FPCTarget
Attached Files

Activities

Thaddy de Koning

2017-01-27 12:25

reporter   ~0097732

Last edited: 2017-01-27 17:10

View 4 revisions

program untitled;
{$ifdef fpc}{$mode delphi}{$H+}{$endif}
var
  a:int64 = 0;
  b:qword = 0;
  c:real := 0.0; // this does not work of course. Trivial.
begin
  inc(a);
  inc(b);
  a := pred(a);
  b := pred(b);
end.

This compiles already for a very long time.
I suspect the real type mentioned should be "comp"

Jonas Maebe

2017-01-27 17:40

manager   ~0097740

Int64 and qword are only regular ordinal types on 64 bit platforms. E.g. on 32 platforms, they cannot be used as for-loop counters.

Serge Anvarov

2017-01-27 20:15

reporter   ~0097746

Double, as other reals, never has been ordinal. But for a simple (basic) types I propose to explicitly add Int64 and QWord into diagram (after ordinal and real).

Thaddy de Koning

2017-01-27 21:14

reporter   ~0097750

No. There is an issue with Apples.

Michael Van Canneyt

2017-01-27 21:55

administrator   ~0097752

I have adapted the wording of real types (changed to "floating point types").
I added a remark about Int64 and Qword.

Issue History

Date Modified Username Field Change
2017-01-27 12:03 Thaddy de Koning New Issue
2017-01-27 12:03 Thaddy de Koning Status new => assigned
2017-01-27 12:03 Thaddy de Koning Assigned To => Michael Van Canneyt
2017-01-27 12:25 Thaddy de Koning Note Added: 0097732
2017-01-27 12:26 Thaddy de Koning Note Edited: 0097732 View Revisions
2017-01-27 12:27 Thaddy de Koning Note Edited: 0097732 View Revisions
2017-01-27 17:10 Thaddy de Koning Note Edited: 0097732 View Revisions
2017-01-27 17:40 Jonas Maebe Note Added: 0097740
2017-01-27 20:15 Serge Anvarov Note Added: 0097746
2017-01-27 21:14 Thaddy de Koning Note Added: 0097750
2017-01-27 21:55 Michael Van Canneyt Fixed in Revision => 1382
2017-01-27 21:55 Michael Van Canneyt Note Added: 0097752
2017-01-27 21:55 Michael Van Canneyt Status assigned => resolved
2017-01-27 21:55 Michael Van Canneyt Fixed in Version => 3.1.1
2017-01-27 21:55 Michael Van Canneyt Resolution open => fixed
2017-01-27 21:55 Michael Van Canneyt Target Version => 3.2.0