source: doc/rob_thesis/examples/poly.c @ b10c621c

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 b10c621c was 12d3187, checked in by Rob Schluntz <rschlunt@…>, 8 years ago

final revisions to thesis

  • Property mode set to 100644
File size: 136 bytes
Line 
1forall(dtype T)
2void foo(T x) {
3
4}
5
6forall(dtype T)
7void bar(T * y) { }
8
9int main() {
10  foo(5);
11  foo("baz");
12  foo(foo);
13  bar(foo);
14}
Note: See TracBrowser for help on using the repository browser.