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 » [REJECTED]: VarArgs class for U++ (va_ macros replacement, in U++ stlye)
Re: [PROPOSAL]: VarArgs class for U++ (va_ macros replacement, in U++ stlye) [message #46037 is a reply to message #46036] Sun, 21 February 2016 19:42 Go to previous messageGo to previous message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
Oblivion wrote on Sun, 21 February 2016 11:23
read through the whole documentation of Vector, which is rather huge, and Any

1) From the documentation: "Any is a special type of container capable of containing none or single element of any type.". Why do you want to pass no arguments with Any? I believe you wanted to use Value instead.
2) va_ macros do not allocate anything on heap. Vector does, and Value can do that. So, it can be more expensive to prepare arguments for a call, then just call a function, and there is also memory fragmentation ...
3) Vector has a set of methods which is standard for vector-like classes. Design of associative containers in Upp is quite unique though.

Just my two cents.


Regards,
Novo
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Moving on with supporting old things...
Next Topic: Build fails with freetype 2.6.3
Goto Forum:
  


Current Time: Wed Apr 24 09:09:24 CEST 2024

Total time taken to generate the page: 0.02565 seconds