On Wed, 14 May 2008 21:24:49 -0700, Richard Maine wrote:
> Ron Ford wrote:
>
>> arr = reshape([(rows(k)%%ptr,k=1,size(arr,1))], &
>> & shape(arr), order = [2,1])
>>
>> shape(A), order = [2,1])
>>
>> I'm hoping to follow this but I get errors with silverfrost f95:error 174 -
>> Unexpected '[' in expression.
>
> The square brackets are an f2003 feature. It is one supported by
> some/many f95 compilers because it is easy to implement, but it wouldn't
> be shocking to find compilers that it won't work on. Try substituting
> the more cryptic tw0 character forms (/ instead of [ and /) instead of
> ].
A = reshape([ &
1, 4, 1, &
2, 2, 1, &
4, 4, 2, &
4, 1, 1, &
3, 1, 1, &
2, 4, 1, &
2, 1, 2, &
1, 3, 1], &
shape(A), order = /2,1/)
I commented out the first error after everything I could fiddle with
failed. This draws the same error. Clearly the prudent path is to use an
f03 compiler. This isn't even the latest f95 now that Plato iv is
available, so it might be something that they've improved.
--
ron Ford