Dynamic dispatch of class typebound procedures ~ methods
Paul Richard Thomas
paul.richard.thomas@gmail.com
Thu Sep 24 17:55:00 GMT 2009
Dear All,
The attached indicates the progress that I have made in getting
dynamic dispatch of class typebound procedures to work. It does not
actually do the dispatching yet but:
(i) With the module patch that I posted already, class extensions can be walked;
(ii) resolve.c now resolves a list of typebound procedure calls for
all members of a class object, when a call is a class object
component; and
(iii) trans-expr.c (conv_function_val) duly parrots the list.
The next step is to effectively do a select case, using the the class
object's vindex as a selector, to pick out the procedure to be called.
I will do this in the next day or two and will extend it to
subroutines. I have not get my head round typebound operators yet!
I am potentially out of touch for a few days. Please do not take
silence as inactivity:-)
Cheers
Paul
--
The knack of flying is learning how to throw yourself at the ground and miss.
--Hitchhikers Guide to the Galaxy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dispatch0924.diff
Type: text/x-patch
Size: 8054 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20090924/bb4b04ae/attachment.bin>
More information about the Fortran
mailing list