Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://crydee.sai.msu.ru/f90/c1.html
Дата изменения: Wed Apr 17 19:02:52 1996 Дата индексирования: Mon Oct 1 19:38:25 2012 Кодировка: Поисковые слова: apollo 13 |
These two forms may not be mixed independently but must be separated at the compilation; an old program, (one or several program units in the form of a main program, subroutines or functions), which is compiled in free form, has the possibility to give a different result compared with earlier when it was compiled with fixed form, compilation errors are possible.
In the same program we can mix program units written in fixed form and free form, but each unit must be only in one form and at the compilation both forms may not usually be in the same source file. Some systems using a special directive may permit program units in different form in the same file. The directive then tells the compiler which form is valid.
(1.2) Modify the program you have just compiled with exchanging
comments starting with C or * for comments
starting with !
and try to use Fortran 90 free form.
Comments.
(1.3) What happens if the following small program is run using fixed form or using free form?
LOGICAL L L = .FALSE. IF (L) THEN Z = 1.0 ELSE Y = Z ENDIF ENDComments.