source: doc/proposals/modules-alvin/3_implementation_details/prototype/testing/a.cmod@ a9049dd

Last change on this file since a9049dd was a9049dd, checked in by Alvin Zhang <alvin.zhang@…>, 8 weeks ago

Prototype code for modules

  • Property mode set to 100644
File size: 143 bytes
Line 
1module A;
2
3import Basic;
4
5export struct S foo(int i, int j, int k) {
6 struct S s;
7 s.i = i;
8 s.j = j;
9 s.k = f(k);
10 return s;
11}
Note: See TracBrowser for help on using the repository browser.