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 #46060 is a reply to message #46057] Fri, 26 February 2016 11:10 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Oblivion wrote on Thu, 25 February 2016 21:35
mirek 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

 
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: Tue Apr 23 18:17:08 CEST 2024

Total time taken to generate the page: 0.02423 seconds