PDA

View Full Version : Re: [Fwd: [LF] SIZE intrinsic]


Lahey Support
08-15-2003, 01:24 AM
>> parts of The Standard at the bottom of the mail. According
>> to point (6) I can have a SIZE reference in my PARAMETER
>> statement, eg:
>>
>> PROGRAM Test
>> INTEGER :: x( 10 )
>> INTEGER, PARAMETER :: n = SIZE (x)
>> WRITE(*,*) n
>> END PROGRAM Test
>
>All true, but in
>
>subroutine test( x)
>integer :: x(:)
>integer, parameter :: n = size( x)
>etc
>
>the bounds of each dimension of x is not an
>initialization expression.


Exactly.

Kindly,
/Per Hakan Lundow


----------------------------------------------------------
To unsubscribe, send to [address removed] the following
as the first and only line of the message body:
unsubscribe fortran
----------------------------------------------------------