Recent

Author Topic: Int64 and QWord not ordinal types?  (Read 1041 times)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12836
  • FPC developer.
Re: Int64 and QWord not ordinal types?
« Reply #15 on: May 04, 2026, 01:37:36 pm »
Note that afaik is a limitation stemming from the Borland Pascal FOR loop.  Classic Pascal did afaik allow regvars larger than register size.

I guess it simply makes optimizing FOR harder (more cases) for little added benefit.

Thaddy

  • Hero Member
  • *****
  • Posts: 19115
  • Glad to be alive.
Re: Int64 and QWord not ordinal types?
« Reply #16 on: May 05, 2026, 04:24:53 pm »
Nope. And Yes. The P-compilers (some of them) allowed that, but they are just that: P-compilers, geared towards everything being better in the past.

Try running P5...
objects are fine constructs. You can even initialize them with constructors.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12836
  • FPC developer.
Re: Int64 and QWord not ordinal types?
« Reply #17 on: May 05, 2026, 06:04:43 pm »
Nope. And Yes. The P-compilers (some of them) allowed that, but they are just that: P-compilers, geared towards everything being better in the past.

Try running P5...

P compilers are not the only non Borland derived compilers. I'm talking about eighties mainframe and minicomputer pascal compilers.

Thaddy

  • Hero Member
  • *****
  • Posts: 19115
  • Glad to be alive.
Re: Int64 and QWord not ordinal types?
« Reply #18 on: May 05, 2026, 07:57:58 pm »
So basically when I was teaching Pascal at university? UCSD?  8-)
Come on Marco, you know where I am coming from. You were 10 or eleven.
And I just left the - obligatory- army service.

My world with Pascal started with UCSD on Apple, hence the reference to P...

Of course you are right about some real compilers at the time, I never saw them.
And WFW and the likes are luxury versions of the dos extenders...
« Last Edit: May 05, 2026, 08:09:41 pm by Thaddy »
objects are fine constructs. You can even initialize them with constructors.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12836
  • FPC developer.
Re: Int64 and QWord not ordinal types?
« Reply #19 on: May 05, 2026, 09:12:35 pm »
So basically when I was teaching Pascal at university? UCSD?  8-)
Come on Marco, you know where I am coming from. You were 10 or eleven.
And I just left the - obligatory- army service.

Dodged that, but I did went through the check-up.

Quote
My world with Pascal started with UCSD on Apple, hence the reference to P...

That it is all that you know as non-borland Psacal,  doesn't excuse you dismissing the rest.


 

TinyPortal © 2005-2018