Silverfrost Forums

Welcome to our forums

What is the rationale for that ?

6 Aug 2022 10:52 #29235

Referring to John Campbell's post on 22nd June, I also find REAL*4 of very little use. Having grown up using computers that had a sensible default REAL size (2 x 24-bit words), with INTEGERs the same size, I do find:

OPTIONS (INTL, DREAL)

suits me fine, even though the length of INTEGER is only half that of REAL. It's a shame that there is no equivalent to INTL for INTEGER*8.

I suspect that there may well be a use for short INTEGERs somewhere (for example, for grey codes where after all we only need to cope with 0 or 1), for me even the 32-bit address space is unimaginably vast, and the waste of space with all those unused bits doesn't matter.

As to some of the other innovations in this and the posts on Fortran 2003 and 2008 features, can someone please remind me of the Star Trek episode where Spock leans over to Kirk, and says 'Its FORTRAN, Jim, but not as we know it'?

6 Aug 2022 12:20 #29236

Dan

/CFPP is required for #include etc.

#include works on its own without a VPARAM.

For #if NDIM == 2 you could use...

/CFPP /DEFINE NDIM 2

then the #if block will be compiled.

Please login to reply.