[Dune] [#564] Use dynamic polymorphism
Dune
dune at dune-project.org
Fri Jun 19 16:28:01 CEST 2009
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#564 - Use dynamic polymorphism
User who did this - Carsten Gräser (Carsten)
----------
This reflects my proposal. 'Til now I missed the fact that the static->dynamic wrapper (point 3.) can also be done generically. Taking this into acount both approaches are almost equivalent with the following exceptions:
1) A dynamic->static wrapper can not produce the interpolate() template if it's not there additionally to the virtual method (1:0 for static approach)
2) (Non-wrapped) Dynamic polymorphism lead to much more readable/understandable code and error messages. (1:1)
3) The virtual interpolate() does not cost to much (???)
4) Virtual functions get optimized away (???)
For me even 2) alone is a very good argument and 2)+3) are enough to switch to dynamic polymorphism.
----------
More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=564#comment971
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
More information about the Dune
mailing list