[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Axiom-developer] Spad and its object model
From: |
Ralf Hemmecke |
Subject: |
Re: [Axiom-developer] Spad and its object model |
Date: |
Mon, 11 Jun 2007 10:25:35 +0200 |
User-agent: |
Thunderbird 2.0.0.0 (X11/20070326) |
IIRC new exports introduced by `extend' are not visible to previous
definitions, except via `has' predicates which execute during runtime. Are
there other issues involved?
I do not understand. What is a "previous" definition in Aldor?
If you extend Integer then it will not be visible globally. Clearly, it
is visible only for those things that "see" the extension.
Try the following via
aldor -laldor -fo -fao aaa.as
aldor -lalgebra -laldor -fx bbb.as aaa.o
bbb
The output is:
foo == F
foo2 == T
although Integer gets extended in libalgebra. However, the package Pkg,
was compiled before and does not "see" the extension.
Ralf
---BEGIN aaa.as
#include "aldor"
Pkg: with {
foo: () -> Boolean;
} == add {
foo(): Boolean == Integer has with {binomial: (%, %) -> %}
}
---END aaa.as
---BEGIN aaa.as
#include "algebra"
#include "aldorio"
#library AAA "aaa.ao"
import from AAA;
Pkg2: with {
foo2: () -> Boolean;
} == add {
foo2(): Boolean == Integer has with {binomial: (%, %) -> %}
}
main(): () == {
stdout << "foo == " << foo()$Pkg << newline;
stdout << "foo2 == " << foo2()$Pkg2 << newline;
}
main();
---END aaa.as
- [Axiom-developer] Spad and its object model, Gabriel Dos Reis, 2007/06/10
- Re: [Axiom-developer] Spad and its object model, Stephen Wilson, 2007/06/10
- Re: [Axiom-developer] Spad and its object model, Martin Rubey, 2007/06/11
- Re: [Axiom-developer] Spad and its object model,
Ralf Hemmecke <=
- Re: [Axiom-developer] Spad and its object model, Stephen Wilson, 2007/06/11
- Re: [Axiom-developer] Spad and its object model, Ralf Hemmecke, 2007/06/11
- Re: [Axiom-developer] Spad and its object model, Stephen Wilson, 2007/06/11
- Re: [Axiom-developer] Spad and its object model, Ralf Hemmecke, 2007/06/11
- Re: [Axiom-developer] Spad and its object model, Stephen Wilson, 2007/06/11
- Re: [Axiom-developer] Spad and its object model, Franz Lehner, 2007/06/11
- Re: [Axiom-developer] Spad and its object model, Ralf Hemmecke, 2007/06/11
Re: [Axiom-developer] Spad and its object model, Gabriel Dos Reis, 2007/06/11