Hi,
> >Is it legal syntax to place the EXTEND...'s separately, as one can do
with
> >PUBLIC or PRIVATE:
> >
> >EXTENSIBLE :: name
> >TYPE(whatever) name
> >
> >and
> >
> >EXTENDS(name) :: new_name
> >TYPE(whatever) new_name
>
> No, it is not allowed in the current draft, and there have been no
> proposals to allow it.
How about inside the TYPE body:
TYPE(whatever) name
EXTENSIBLE :: name
ENDTYPE
or
TYPE(whatever) new_name
EXTENDS(name) :: new_name
ENDTYPE
The problem is that the double colon :: makes FWEB treat the
type-declaration line as a declaration line (which it is), after which it
adds no indentation. To indent the body of the TYPE declaration it needs to
treat the delcaration line also as a code delimiter (such as DO, or
SUBROUTINE). At present though it can only treat a line as one or the
other...
Thanks,
Aleksandar
_____________________________________________
Aleksandar Donev
http://www.pa.msu.edu/~donev/
[log in to unmask]
(517) 432-6770
Department of Physics and Astronomy
Michigan State University
East Lansing, MI 48824-1116
_____________________________________________
|