|
|
|
last edited 18 years ago by gdr |
| 1 2 3 | ||
|
Editor: Bill Page
Time: 2008/05/28 16:18:30 GMT-7 |
||
| Note: | ||
changed: -MyPair(T:Domain):Domain=Record(x:T,y:T) MyPair(T:Domain):Domain==Record(x:T,y:T) changed: -MyAlt(T:Domain):Domain=Union(p:T,q:T) MyAlt(T:Domain):Domain==Union(p:T,q:T)
This function that returns a Domain has the side-effect of declaring x and y:
(1) -> MyPair(T:Domain):Domain==Record(x:T,y:T)
Domain is not a valid type.
But this does not happen for Union
MyAlt(T:Domain):Domain==Union(p:T,q:T)
Domain is not a valid type.