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 » Possible solution of "icpp problem"
Re: Possible solution of "icpp problem" [message #46853 is a reply to message #46851] Sun, 28 August 2016 17:41 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Mindtraveller wrote on Sun, 28 August 2016 10:07
First of all, let's think do we really need to keep icpp-compatibility at all. Or it is possible to forget about them once and for all.

Talking about the solution proposed (to inject registration calls with header - if I understand it correctly), I think this is possible way, but it has one [possible] issue with initialization order. We can't predict the way headers are included and we can't predict the sequence of initialization.


That is non-issue. We cannot predict the order now as well - the code has to written in a way that order does not matter. Which actually is not that hard.

Quote:

I always wondered why plugins are not initialized inside CONSOLE_APP_MAIN/GUI_APP_MAIN)


That is certainly possible, but complicates client code contract. You will have to start to remember that package needs to be registered.

Quote:

with auto-initialization classes


The link you have posted suggests highly specialized case of what we need to do IMO. Anyway, the problem with code overhead mentioned in the article is real, it is something I will have yet to think about... (and yet again, icpp seems to be the superior solution to that...)

Mirek

[Updated on: Sun, 28 August 2016 17:41]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Solved] Instant Upp crash on char input
Next Topic: Parser error: Unterminated string
Goto Forum:
  


Current Time: Mon Apr 29 10:18:11 CEST 2024

Total time taken to generate the page: 0.03313 seconds