login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Edit detail for #422 declarations escape Record revision 1 of 3

1 2 3
Editor: Bill Page
Time: 2008/05/28 16:16:29 GMT-7
Note:

changed:
-
This function that returns a Domain has the side-effect of declaring x and y:
\begin{axiom}
MyPair(T:Domain):Domain=Record(x:T,y:T)
w:MyPair(Float)
x
y
w
\end{axiom}

But this does not happen for Union
\begin{axiom}
MyAlt(T:Domain):Domain=Union(p:T,q:T)
r:MyAlt(Float)
p
q
r
\end{axiom}

Submitted by : Bill Page at: 2008-05-28T16:16:29-07:00 (16 years ago)
Name :
Axiom Version :
Category : Severity : Status :
Optional subject :  
Optional comment :

This function that returns a Domain has the side-effect of declaring x and y:

axiom
MyPair(T:Domain):Domain=Record(x:T,y:T) Category, domain or package constructor = is not available. w:MyPair(Float) Category, domain or package constructor MyPair is not available. x
LatexWiki Image(1)
Type: Variable x
axiom
y
LatexWiki Image(2)
Type: Variable y
axiom
w
LatexWiki Image(3)
Type: Variable w

But this does not happen for Union

axiom
MyAlt(T:Domain):Domain=Union(p:T,q:T) Category, domain or package constructor = is not available. r:MyAlt(Float) Category, domain or package constructor MyAlt is not available. p
LatexWiki Image(4)
Type: Variable p
axiom
q
LatexWiki Image(5)
Type: Variable q
axiom
r
LatexWiki Image(6)
Type: Variable r