| 1 | (* The body of a generic module runs once for an instance, however |
| 2 | many times it is imported. *) |
| 3 | module LoudOnce; |
| 4 | import Out, A := Loud(I64), B := Loud(I64); |
| 5 | |
| 6 | proc main*; |
| 7 | begin |
| 8 | Out.str("sizes "); Out.int(A.size); Out.char(' '); Out.int(B.size); Out.ln; |
| 9 | end; |
| 10 | |
| 11 | end LoudOnce. |