Richard Maine <nos...@see.signature> wrote:
> glen herrmannsfeldt <
g...@ugcs.caltech.edu> wrote:
>> But again, in the case of open source, you can add the switch, and
>> modify the compiler (and I presume library routine) to use that switch.
> Of course in this particular case, that's only multiple orders of
> magnitude more work than just fixing the code to depend only on what is
> specified by the standard.
Well, I wasn't going to say more about that one, but that was a
follow-up to someone else.
Yes, if you only want one it is easiest just to write it out
using ordinary Fortran I/O statements.
> Let's see. Start by learning another language (the compilers aren't
> written in Fortran). Then learn how the compiler innards work enough to
> figure out the modifications. Finally build and maintain your customized
> version of the compiler, distributing it along with your code to anyone
> who needs to use your code. Yup. That sounds like a good plan. :-(
It does help to know C. Once in a while I can figure out how to
modify a program in a language I don't know by following the
pattern of existing code.
Without the option switch, this one probably isn't hard, but getting
the option all the way from the command line to where it is needed
is most of the work.
Guessing, without looking at the code, there should be a loop that
loops for repeats. Figure out the test inside the loop and make
sure it always fails to find a repeat, should do it.
Adding it as a #define option, not so much harder.
> Just because you *CAN* do things that way doesn't mean it is even
> remotely a good idea. Though I suppose maybe we are off in some abstract
> discussion of an imaginary world instead of giving practical advice.
Yes, the latter.
But impractical for some might not be for others.
Extra challenge to do it without the source code.
-- glen