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 |
Novo
Messages: 1358 Registered: December 2006
|
Ultimate Contributor |
|
|
Oblivion wrote on Sun, 21 February 2016 11:23read 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
|
|
|
|
|
[REJECTED]: VarArgs class for U++ (va_ macros replacement, in U++ stlye)
By: Oblivion on Sun, 21 February 2016 14:46
|
|
|
Re: [PROPOSAL]: VarArgs class for U++ (va_ macros replacement, in U++ stlye)
By: Novo on Sun, 21 February 2016 16:11
|
|
|
Re: [PROPOSAL]: VarArgs class for U++ (va_ macros replacement, in U++ stlye)
By: Oblivion on Sun, 21 February 2016 17:23
|
|
|
Re: [PROPOSAL]: VarArgs class for U++ (va_ macros replacement, in U++ stlye)
By: Novo on Sun, 21 February 2016 19:42
|
|
|
Re: [PROPOSAL]: VarArgs class for U++ (va_ macros replacement, in U++ stlye)
By: Oblivion on Sun, 21 February 2016 21:34
|
|
|
Re: [PROPOSAL]: VarArgs class for U++ (va_ macros replacement, in U++ stlye)
By: Novo on Thu, 25 February 2016 05:10
|
|
|
Re: [PROPOSAL]: VarArgs class for U++ (va_ macros replacement, in U++ stlye)
By: mirek on Mon, 22 February 2016 20:34
|
|
|
Re: [PROPOSAL]: VarArgs class for U++ (va_ macros replacement, in U++ stlye)
By: Oblivion on Thu, 25 February 2016 21:35
|
|
|
Re: [PROPOSAL]: VarArgs class for U++ (va_ macros replacement, in U++ stlye)
By: mirek on Fri, 26 February 2016 11:10
|
Goto Forum:
Current Time: Wed Apr 24 09:09:24 CEST 2024
Total time taken to generate the page: 0.02565 seconds
|