Re: [Python-Dev] Proposal for C++ metaclasses

2017-06-27 Thread Guido van Rossum
Heh, I'm not totally surprised -- I took Python's metaclass design from a book named Putting Metaclasses to Work, by Ira R. Forman and Scott H. Danforth ( https://www.amazon.com/Putting-Metaclasses-Work-Ira-Forman/dp/0201433052). The book describes a custom metaclass extension to C++ supporting met

[Python-Dev] Proposal for C++ metaclasses

2017-06-27 Thread Steve Dower
Thought this might be interesting for those of us who live deeper in the language than most – this is the formal proposal to add metaclasses to C++. http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0707r0.pdf Given the differences between Python and C++, it’s obviously got a different a