>
> I've just committed a fix to the f77 example 26 so that it gives
> identical results to the C version. While trying to do this I needed to
> split one of the unicode strings in a data statement across two lines
> since the multibyte characters make the line more than 72 characters
> long. You can't use the string concatenation operator // in a data
> statement since / is intepreted as the end of the statement. Is there an
> alternative way to do this without filling the line to exactly 72
> characters then continuing the string on the next line? This is what
> currently happens and it works but it doesn't look elegant to me. Also,
> if it results in splitting a multibyte character then it screws up the
> unicode viewing in the various editors I've tried. Luckily the split
> falls nicely for this example now. Just looks like a recipe for trouble
> to me.
>
> Are there any fortran gurus with a better solution, or is this just a
> limitation of fortran?
>

It is a limitation of FORTRAN 77. In Fortran 90/95 you can do:

data string / 'My, this is &
     &a long string' /

and get:
My, this is a long string

The &'s act as a delimiter in this case.

The alternative in FORTRAN 77 would be not to use a data
statement, but a regular statement, so that the // operator
can be used.

If the spilt would not occur on a UNICODE character boundary,
then leading blanks could be used to reposition the split, but
it would still be at position 72.

Regards.

Arjen

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to