This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: line continuation
- From: "N.M. Maclaren" <nmm1 at cam dot ac dot uk>
- To: Dmitry Shkirmanov <piminusmeson at bk dot ru>
- Cc: fortran at gcc dot gnu dot org
- Date: 20 Sep 2011 11:31:50 +0100
- Subject: Re: line continuation
- References: <4E786781.60305@bk.ru>
On Sep 20 2011, Dmitry Shkirmanov wrote:
third_long_name_variable+second_long_name_variable+first_long_nam&
e_variable
But such line continuation is not recognized by gfortran, ...
It's a breach of Fortran's syntax rules, and therefore a bug in Maxima.
The correct syntax is:
a=third_long_name_variable+second_long_name_variable+first_long_nam&
&e_variable
You must use the double & form when splitting lexical tokens. You can
easily fix up Maxima's bug by running a simple awk, Python or Perl
script to add an & to the start of every line that follows one that is
terminated with an &.
Regards,
Nick Maclaren.