Print

Print


That's what I recalled. How does it work with private/public, though? Is
there a "friend" classification, or varying degrees of protection?

Alvaro


-----Original Message-----
From: Fortran 90 List [mailto:[log in to unmask]] On Behalf Of
Aleksandar Donev
Sent: Wednesday, March 03, 2004 12:09 PM
To: [log in to unmask]
Subject: Re: Symbols

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