News for hackers. Stuff that matters.
Re:Lambdas in C by demallien on Friday July 01, 2011 @10:54AM (#2718550)

  printf("I am bad and evil %p\n", ({int bad_and_evil(void){return 0;};&bad_and_evil;}));
  printf("I am bad and evil2 %d\n", ({0x4FFFFFF;}));
  
  void* result = ({void* bad_and_evil(int dummy){return 0;};&bad_and_evil;});
  printf("bad and evil 3 = %p\n", result);
* shudder * Getting a return value from a block, by inserting it in parantheses.

There are no comments on this comment yet.