logoalt Hacker News

Wooditoday at 4:13 AM0 repliesview on HN

struct MessageBuffer

{

  int msgType;


  union {


    char *name;


    int nameID;


  };
};

That finally convinced me getting data using functions (accessors, getters, setters) is a good thing, even in C :) Just all that unnecesary if's are so annoing and killing performance...