source: doc/theses/rob_schluntz/examples/variadic/sum2.c @ 1596726

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

more documentation name changes

  • Property mode set to 100644
File size: 214 bytes
RevLine 
[7493339]1int sum(int x, int y){
2  return x+y;
3}
4forall(ttype Params | { int sum(int, Params); })
5int sum(int x, int y, Params rest) {
6  return sum(x+y, rest);
7}
8int main() {
9  printf("%d\n", sum(10, 20, 30, 40, 50, 60));
10}
Note: See TracBrowser for help on using the repository browser.