source: doc/theses/rob/examples/tuples/ctor.c @ cf68d04

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 cf68d04 was cf68d04, checked in by Peter A. Buhr <pabuhr@…>, 7 years ago

restructure theses documents

  • Property mode set to 100644
File size: 191 bytes
Line 
1struct S { int x; double y; };
2[void] ?{}(* [int, double] this, S s) {
3  this->0 = s.x;
4  this->1 = s.y;
5}
6int main() {
7  S s = { 123, 345 };
8  [int, double] x = s;
9  printf("%d %g\n", x);
10}
Note: See TracBrowser for help on using the repository browser.