Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » true dynamic dispatching with Upp?
Re: true dynamic dispatching with Upp? [message #37566 is a reply to message #37564] Thu, 18 October 2012 23:23 Go to previous messageGo to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
that's a nice idea..

in fact as far as i can see, there are only 2 options here. either using dynamic_cast, as it's a true dynamic dispatch, or store somehow the editor context with the Element, probably within a Helper wrapper. C++ is strong typed, this hits me now Smile

thanks for helping..

EDIT: i remember to have seen sth nice in Xmlize dispatching Smile there a templated Invoke callback is used, which hides away the storage of the type and it's concrete method... this is something similar in fact

[Updated on: Thu, 18 October 2012 23:24]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Exception handling in Http::Dispatch
Next Topic: TheIDE : allow single translation file in main package
Goto Forum:
  


Current Time: Wed Jun 12 12:58:31 CEST 2024

Total time taken to generate the page: 0.02107 seconds