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

Edit detail for #426 Non-builtin domain values fail revision 1 of 4

1 2 3 4
Editor: Bill Page
Time: 2008/05/28 20:08:03 GMT-7
Note:

changed:
-
In OpenAxiom functions can return domain-values. This works for example in
\begin{axiom}
MyPair(X:Domain,Y:Domain):Domain == Record(p1:X,p2:Y)
MyPair(Integer,Float)
\end{axiom}
where 'Record' is a built-in type.

But I cannot use a compiled type such as 'Product' in place of 'Record'
\begin{axiom}
MyPair2(X:Domain,Y:Domain):Domain == Product(X,Y)
MyPair2(Integer,Float)
Product(Integer,Float)
\end{axiom}


Submitted by : Bill Page at: 2008-05-28T20:08:03-07:00 (15 years ago)
Name :
Axiom Version :
Category : Severity : Status :
Optional subject :  
Optional comment :

In OpenAxiom? functions can return domain-values. This works for example in

axiom
MyPair(X:Domain,Y:Domain):Domain == Record(p1:X,p2:Y) Domain is not a valid type. MyPair(Integer,Float) There are no library operations named MyPair Use HyperDoc Browse or issue )what op MyPair to learn if there is any operation containing " MyPair " in its name. Cannot find a definition or applicable library operation named MyPair with argument type(s) Domain Domain Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need.

where Record is a built-in type.

But I cannot use a compiled type such as Product in place of Record

axiom
MyPair2(X:Domain,Y:Domain):Domain == Product(X,Y) Domain is not a valid type. MyPair2(Integer,Float) There are no library operations named MyPair2 Use HyperDoc Browse or issue )what op MyPair2 to learn if there is any operation containing " MyPair2 " in its name. Cannot find a definition or applicable library operation named MyPair2 with argument type(s) Domain Domain Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need. Product(Integer,Float)
LatexWiki Image(1)
Type: Domain