Re: public/private and overloaded operator
- From: nospam@xxxxxxxxxxxxx (Richard Maine)
- Date: Thu, 29 May 2008 15:28:40 -0700
mrestelli@xxxxxxxxx <mrestelli@xxxxxxxxx> wrote:
fortcom: Error: fquest.f90, line 33: This dummy argument of this
module procedure is of a type that has PRIVATE accessibility and the
procedure has a generic identifier that has PUBLIC accessiblity.
There were a bunch of restrictions like this that were removed with one
of the Fortran revisions. I think it was between f95 and f2003. So in
some sense, both compilers are right. You might want to look at the
particular compiler options for controlling the version of the standard
that messages are produced for; some compilers have multiple options
there.
It is my opinion that these restrictions were misguided in the first
place. They achieved nothing useful and disallowed otherwise reasonable
coding practices. I think that a majority of J3 eventually came to agree
with that. AT any case, they did agree with removing the restrictions in
f2003.
--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.
- Follow-Ups:
- Re: public/private and overloaded operator
- From: Steve Lionel
- Re: public/private and overloaded operator
- References:
- public/private and overloaded operator
- From: mrestelli@xxxxxxxxx
- public/private and overloaded operator
- Prev by Date: Re: Fortran 90 Chess
- Next by Date: Re: Fortran 77 alphabet character $
- Previous by thread: public/private and overloaded operator
- Next by thread: Re: public/private and overloaded operator
- Index(es):
Relevant Pages
|
|