This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: line continuation


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]