source: doc/theses/rob_schluntz_MMath/examples/variadic/print.c@ ee7a29f

ADT arm-eh ast-experimental cleanup-dtors enum forall-pointer-decay jacob/cs343-translation jenkins-sandbox new-ast new-ast-unique-expr pthread-emulation qualifiedEnum
Last change on this file since ee7a29f was 67982887, checked in by Peter A. Buhr <pabuhr@…>, 7 years ago

specialize thesis directory-names

  • Property mode set to 100644
File size: 267 bytes
Line 
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.