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 #46060 is a reply to message #46057] |
Fri, 26 February 2016 11:10 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
Oblivion wrote on Thu, 25 February 2016 21:35mirek wrote on Mon, 22 February 2016 21:34
IMO Value makes better alternative if 'args' are concretes.
If not, C++11 parameter packs would probably be better. Or sometimes tuples.
Hello Mirek,
Yes it certainly would be better in that case. But main focus of this class is on mutable pointers, and references. As I mentioned above, I actually decoupled it from the simple synchronization tool I wrote, where async jobs (methods with variable arguments) are queued to be executed later. It works well there.
Anyway, I am going to mark this proposal as rejected, for it now seems to me a bad idea to generalize this type of argument passing.
Ah, sorry, I might have been confused by the example, which is only using concretes.
I will reinvestigate with that in mind...
Mirek
[Updated on: Fri, 26 February 2016 11:10] Report message to a moderator
|
|
|
|
|
[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: Tue Apr 23 18:17:08 CEST 2024
Total time taken to generate the page: 0.02423 seconds
|