axiom-developer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Axiom-developer] Unions in Spad


From: Stephen Wilson
Subject: Re: [Axiom-developer] Unions in Spad
Date: 13 Jul 2007 03:24:42 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

Stephen Wilson <address@hidden> writes:

> > so if you write
> > 
> >    inj (n : Integer) : % == [n]
> > 
> > as above, that should be a type error.
> 
> On the contrary, it is a call to:
>    
>     construct : Integer -> %
> 
> which is well typed.

Sorry.  Again it is late.  Spad will perform automatic coercions for
you from type Rep to type %, which is clearly the key point here.
Often there is no need for `rep' and `per' as in Aldor.


Sincerley,
Steve






reply via email to

[Prev in Thread] Current Thread [Next in Thread]