
Alexander Nasonov <alnsn@yandex.ru> writes:
David Abrahams wrote:
Jesse Jones <jesjones@mindspring.com> writes:
1) Compile time. Yes, this solution is strongly compile time. But I think it is an advantage :-)
I disagree. The biggest benefit of multimethods is that they are flexible.
Yeah. It's hard to imagine how "compile-time multimethods" would be any different from what C++ already provides in terms of overload resolution and partial ordering.
There is something more then runtime and compile-time. It's initialization time. Multimethods might be initialized with lots of MPL and other cool compile-time stuff and yet might being used at runtime flexibly.
Sure, I'm familiar with that technique. One of my FSM examples uses dispatch tables built at initialization time. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com