This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
METHOD_TYPEs
- From: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- To: Janus Weil <janus at gcc dot gnu dot org>
- Cc: gfortran <fortran at gcc dot gnu dot org>
- Date: Mon, 25 May 2009 20:28:57 +0200
- Subject: METHOD_TYPEs
Janus,
In going through tree.def for a completely different reason, I found:
/* METHOD_TYPE is the type of a function which takes an extra first
argument for "self", which is not present in the declared argument list.
The TREE_TYPE is the return type of the method. The TYPE_METHOD_BASETYPE
is the type of "self". TYPE_ARG_TYPES is the real argument list, which
includes the hidden argument for "self". */
DEFTREECODE (METHOD_TYPE, "method_type", tcc_type, 0)
It might be interesting to see how these are used in g++....
Cheers
Paul