Re: how to get CVF not to compile when more than 132 characters on a line?



dpb wrote:
louisrom1@xxxxxxxxx wrote:
I use .f90 files and I cannot change the extension
is there a way to limit to 132 characters?

Set Standard-checking to F95 and "Warn on source truncation"

In the IDE these are in Compilation Diagnostics under Project
Settings...

For some reason the "Standard warning as error" didn't trigger a fatal
error, but did the warning on a test program. It appears exceeding
the 132 column Standard line length didn't make the list of Standard
violations, but is checked against the line truncation.

So, didn't _stop_ compilation outright, but does provide a warning.
Halfway good enough? :)

An alternative is to use
Tools>Options>Format>Source Window
to change settings for the VS editor so that it shows a different colour background for columns 133+. While not doing what was originally asked, it would help to avoid inadvertently going too far on a line.

David Jones
.



Relevant Pages

  • Standards question regarding intrinsics with complex arguments
    ... these arguments) is not permitted by the Fortran 95 standard. ... 1501-510 Compilation successful for file test_cmplx.f90. ... I believe the code in question is standard Fortran95 and that the compiler is ... A kind type parameter ...
    (comp.lang.fortran)
  • Re: C# -- Good or Bad?
    ... ECMA standard. ... These implementations use JIT compilation, ... > need languages which allow to work close to the hardware, ... Finally, I'd note that in some cases, interpretation can actually ...
    (comp.lang.cpp)
  • Re: Inconsistent Program Results
    ... including one of them might trivially slow down compilation, ... I wrote the above (starting with "The standard headers"). ... return void, but there's no advantage in using that. ... You're cheating yourself by ignoring warning messages. ...
    (comp.lang.c)
  • Re: Forth Frustrations
    ... information on the data stack all the way through compilation, ... Forth-like language, not on top of ISO Forth. ... Forth-94 on top of my simpler language. ... compiler that fits the new simpler "standard", it will be easy to add ...
    (comp.lang.forth)
  • Re: SAME AS (02 Standard) Clause - and circulatiy
    ... "the standard does NOT tell implementers in what order ... As far as "6.4 Logical conversion" as described on page 28 and following, ... "If the compilation stage were described in such terms, ...
    (comp.lang.cobol)