Joseph
2011-02-15 01:30:20 UTC
Page 63 defines the following type rule for modules:
pi --> D: pi_1 dec
------------------------------
pi --> module I = {D}:{I:pi_1}dec
However, this contradicts the type rule from page 58:
pi --> D: pi_1 dec
------------------------------
pi --> module I = {D}:{I:pi_1 dec}dec
The difference being that there is an extra dec in the module's type. I
believe that the second should be used, otherwise, whatever is defined
inside the module would become available without an import.
Anyone have thoughts?
Cheers,
Joseph
pi --> D: pi_1 dec
------------------------------
pi --> module I = {D}:{I:pi_1}dec
However, this contradicts the type rule from page 58:
pi --> D: pi_1 dec
------------------------------
pi --> module I = {D}:{I:pi_1 dec}dec
The difference being that there is an extra dec in the module's type. I
believe that the second should be used, otherwise, whatever is defined
inside the module would become available without an import.
Anyone have thoughts?
Cheers,
Joseph