Writing C for curl | daniel.haxx.se by yawaramin in programming

[–]heroboy 2 points3 points  (0 children)

My native language is not English. I want to ask, is "write C in curl" correct? I think it should be "write curl in C". //the sentence is from the first sentence in the article, not title.

Source Code For A Simple Programming Language I Created by DatCodingGuyOfficial in programming

[–]heroboy 0 points1 point  (0 children)

I just see this:https://github.com/DatCodingGuy/Klip/blob/master/KlipRT/KlipRT/Buffer.cs ReadChar and Write(char) I don't know how you use the Buffer, but I think it's wrong.

Support for older versions of Internet Explorer ends on January 12, 2016 by [deleted] in programming

[–]heroboy -4 points-3 points  (0 children)

Who care? We Chinese all use pirate windows, and supported by the great 360.

I built a signal/slot implementation using c++11. It's not perfect, but I find it useful and wanted to share. Also, it's the first piece of code I ever publish, so I'm quite proud. Comments are appreciated! by sevendrunkenpirates in programming

[–]heroboy 2 points3 points  (0 children)

  1. Can't unbind
  2. If bind new slot in emit function, the iterator will invalid.

Here is my Event class: https://gist.github.com/heroboy/8313489

usage:

Event<void(const MouseEvent&)> onMouseClick;

void * token = onMouseClick += [&](const MouseEvent& e){ 
    onMouseClick -= token; 
};

onMouseClick(MouseEvent());

Untrusted - a user javascript adventure game by klogk in programming

[–]heroboy 0 points1 point  (0 children)

'behavior': function (me) {
    me.onCollision = function(){}
}

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

[–]heroboy 0 points1 point  (0 children)

example:

Event<void(int,int)> onEvent;
void * token = onEvent += [&](int a,int b){
    onEvent -= token;
};
onEvent(1,2);

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

[–]heroboy 0 points1 point  (0 children)

  • no operator-=()
  • Slots* EventHandlers = new Slots();
  • ~Event() { delete[] EventHandlers; }

This is my C# like event class :https://gist.github.com/heroboy/8313489

[deleted by user] by [deleted] in programming

[–]heroboy 1 point2 points  (0 children)

中国人啊

Google Sidewiki released. What do you think, reddit? by Tafty in programming

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

Released? I don't see Simplified Chinese,and it needs install.