[Tutor] digging more into metaclasses

Alan Gauld alan.gauld at freenet.co.uk
Fri Jul 14 08:15:27 CEST 2006


> are metaclasses like templates in C++
> thanks for your explanations

No, there is no direct concept of metaclasses in C++.
You need to ook to languages like Lisp and Smaltalk for those.

The nearest you get to meta-classes in C++ is static members 
and methods. But they don't allow you to alter things like method 
lookup algorithms etc. Very few, if any, statically typed languages 
support meta programming in a full sense.

Alan G.



More information about the Tutor mailing list