Monthly Archives: March 2011

What C needs…

  • no undefined behaviour (prefer Compile Errors over strange behaviour)
  • Garbage Collector (reference counter)
  • Polymorphism / Multimethods (function identifier by signature / API)
  • no NULL terminated strings
  • Namespaces

thanks for the discussion, name

C and printf

#include <stdio.h>

int main()
{
  unsigned int x = 0;
  unsigned int y = x - 1;
  printf("%d n", y);
  printf("%d n", y < 0);
  return 0;
}

Ausgabe?

-1
0

C is evil :-(