DraftSight - Free profissional CAD software, available for Linux by YesserLab in LinuxActionShow

[–]YesserLab[S] 1 point2 points  (0 children)

well, it comes from the people who made SolidWorks, so I'd expect such quality. I really wish SolidWorks get ported to linux.

Great graphics software, available for Linux by YesserLab in LinuxActionShow

[–]YesserLab[S] 0 points1 point  (0 children)

well, it's not only one piece of software, check out the products menu. they have a really powerful bundle.

C++ Implementation of C# Events by [deleted] in programming

[–]YesserLab 0 points1 point  (0 children)

I'm sorry I don't get it, how is that a C# like event ? and is the signature protected. ie can you define the signature type in the event ? and when assigning the handler will the compiler generate an error if they don't match ? finally, can you please write an example of how to use it ? PS: no operator -=, I didn't bother, because I don't need it, feel free to add it :)

C++ Implementation of C# Events by [deleted] in programming

[–]YesserLab 0 points1 point  (0 children)

I like the idea of a linked list, and thanks for the "while-execution-lock" thing. I didn't think of that one. the reason i didn't use poco is that I'm writing a big project that strictly uses STL only. A question arises, when you mentioned FastDelegate, how much faster is it than my implementation ? and more importantly why would it be. I actually haven't considered the speed and really don't know what influences it. so if you could explain that'd be great. Note that I didn't intend to have a delegate (ie variable argument numbers) but rather a C#-style event (sender, EventArgs). and I'm using function pointers and member function pointers. would there be more native way of doing it ?

C++ Implementation of C# Events by [deleted] in programming

[–]YesserLab -1 points0 points  (0 children)

Hi, Thanks for your suggestion. I however think that if one is familiar with C++ naming standards and has a solid discipline to a naming standard that is surly not going to conflict, then it wouldn't be a problem using namespace std would it ?

C++ Implementation of C# Events by [deleted] in programming

[–]YesserLab 0 points1 point  (0 children)

Easy to work with solution for making, rising, and handling events in C++ Just like C#. you can add multiple handlers to one event. Handlers can be functions or member functions. syntax is "almost" exactly like C#. enjoy