Hacker News new | ask | show | jobs
by AnimalMuppet 4198 days ago
Converting a C value to a Cello value is easy.

  int cValue = 5;  // because I randomly feel like that's a good number
  var celloValue = $(Int, cValue);  // I'm pretty sure this works, but I haven't proven it
Coming back from Cello to C, it appears that you can do this:

  long anotherCValue = as_long(celloValue);