source: doc/theses/rob_schluntz/examples/variadic/print.c @ 5f20b30

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since 5f20b30 was 728df66, checked in by Peter A. Buhr <pabuhr@…>, 7 years ago

more documentation name changes

  • Property mode set to 100644
File size: 267 bytes
RevLine 
[9c14ae9]1forall(otype T, ttype Params |
2  { void print(T); void print(Params); })
3void print(T arg, Params rest) {
4  print(arg);
5  print(rest);
6}
7void print(const char * x) { printf("%s", x); }
8void print(int x) { printf("%d", x);  }
9int main() {
10  print("x = ", 123, ".");
11}
Note: See TracBrowser for help on using the repository browser.