Standardizing methods of core types.
commit86387c476a7ac4ee0e878a47597c05341943e69b
authorHenrik Tidefelt <tidefelt@isy.liu.se>
Mon, 24 Nov 2008 07:47:37 +0000 (24 08:47 +0100)
committerHenrik Tidefelt <tidefelt@isy.liu.se>
Tue, 2 Dec 2008 00:53:56 +0000 (2 01:53 +0100)
tree4e27cc66e41087d501d4edfe16fdc2e10c5de7ee
parent05a02339db457a27f68fbb88b310e4ee28a4ef57
Standardizing methods of core types.

This should not change the language in any aspect, but deals only with how methods are implemented.

The idea is that methods are a type property, which allows them to be "stored" in the type.  Well, actually, the methods themselves are not stored in the type, since they depend on the object they belong to, what is stored in the type is the method factory.

The code has been rewritten so that the name of a method appears only once, and so that the member data <title_> may be used in the implementation of a method to present itself correctly in error messages.

Existing types with methods have been rewritten using the new technique, and shall serve as examples when methods are added to other types as well.
source/Shapes_Kernel_decls.h
source/classtypes.cc
source/classtypes.h
source/containertypes.cc
source/functiontypes.cc
source/main.cc
source/methodbase.h
source/methodbase_impl.h