axiom-mail
[Top][All Lists]
Advanced

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

Re: [Axiom-mail] Equivalence between named domain and %


From: Waldek Hebisch
Subject: Re: [Axiom-mail] Equivalence between named domain and %
Date: Tue, 17 Oct 2006 19:39:35 +0200 (CEST)

Gabriel Dos Reis wrote:
> If my understanding is correct, this problem touches upon the fact
> that the SPAD compiler does not know (at the moment) how to properly
> resolve recursive declaration/definitions of types.  Is that correct?
> 
> Since, under the hood, almost everything is a pointer, why is the
> compiler having trouble admitting recursion?
> 

AFAICS Spad types are global and separately compiled. Recursive
dependencies are painful when you want separate compilation.

Also, during type checking compiler traverses varoius links (references)
between types -- on has to be careful to avoid infinite loops
(and when loop is detected how to give sane semantic to the loop).

I am not sure if just telling "recursive type definitons are OK" is
a good idea.  Some restrictions on recursion are clearily needed,
and with such restrictions old-fashioned techniqe of forward
declarations may work well.

-- 
                              Waldek Hebisch
address@hidden 




reply via email to

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