> That's what I recalled. How does it work with private/public, though? Is
> there a "friend" classification, or varying degrees of protection?
>
> Alvaro
There's no need for anything like a "friend" classification. If two
"classes" are "friends," just put them in the same module. The module
is a concept entirely lacking in C++.
>
> David LaFrance-Linden wrote:
> > So... in addition to function-like syntax to reference components, use
> > function-like syntax to invoke OO methods. The same abstraction
> > arguments apply.
> Well, since we *don't* have function-like syntax for components, F2003
> chose component-like syntax for type-bound procedures (methods). So you
> call a method:
> WRITE(*,*) object%method(argument)
> which would work if method were an array component, for example.
> This was as good a decision as could be made considering the choices
> already made in previous versions of Fortran.
> Best,
> Aleks
--
Van Snyder | What fraction of Americans believe
[log in to unmask] | Wrestling is real and NASA is fake?
Any alleged opinions are my own and have not been approved or disapproved
by JPL, CalTech, NASA, Sean O'Keefe, George Bush, the Pope, or anybody else.
|