Print

Print


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