Post Reply 
Which systems support a COMPLEX data type?
07-19-2023, 07:06 PM (This post was last modified: 07-19-2023 07:07 PM by HP67.)
Post: #25
RE: Which systems support a COMPLEX data type?
(07-12-2023 07:52 AM)Martin Hepperle Wrote:  In some languages like HP BASIC or Fortran, I can simply change the type from REAL to COMPLEX and no additional code changes are required.

I don't know if that's an HP (DEC / COMPAQ) Fortran extension, but it looks like (as of yet unverified) that FORTRAN IV had a COMPLEX type that would require function calls to convert to REAL. If so, changing the type could require code changes. And, it almost certainly would require code changes if calls were made to assembler subroutines as they often were.

When I get time I'll check this on various versions of IBM FORTRAN and some other compilers I have on various boxes (Sun Studio for SPARC, Intel for Intel/AMD). I had an emulated VMS box but I'm not sure the licenses are valid. That's a good system to look at the behavior of early DEC languages.

Anyway, interesting discussion!

It ain't OVER 'till it's 2 PICK
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Which systems support a COMPLEX data type? - HP67 - 07-19-2023 07:06 PM



User(s) browsing this thread: 1 Guest(s)