Re: [fpc-pascal] For Loop with QWord

2023-01-03 Thread Bart via fpc-pascal
On Tue, Jan 3, 2023 at 3:49 PM James Richters via fpc-pascal wrote: > Var > > I: QWord; > > Begin > > For I := 1 To N Do > It generates an error: > Error: Ordinal expression expected > If I change it to LongInt, then it works, but the question is, why can’t I > use a Qword here if I know I w

[fpc-pascal] For Loop with QWord

2023-01-03 Thread James Richters via fpc-pascal
I'm wondering why I can't have the following: Var I: QWord; Begin For I := 1 To N Do . It generates an error: Error: Ordinal expression expected If I change it to LongInt, then it works, but the question is, why can't I use a Qword here if I know I will never need I to be a negative nu