News for hackers. Stuff that matters.
Re:WinRT demystified by krig on Thursday September 15, 2011 @03:47PM (#3001830)
Aha, that almost makes sense. You're saying "add 2" might mean a component that exposes two methods. Not sure what exactly he is demonstrating there, actually. I mean, here's a DLL written in C that exposes the same two methods (although not asynchronous):

  int Add(int a, int b) { return a + b; }
  int Sub(int a, int b) { return a - CountEveryBitByHand(b); }
So, I guess the example is just to show the async stuff, really.

There are no comments on this comment yet.