Ralf Hemmecke
2008-08-05 13:49:46 UTC
Hi Martin,
Nice to see that you work hard on this.
on the aldor-combinat mailing list.
What you want is that Aldor hopefully produces something reasonable out
of that. Actually, you should have raised this problem during the Aldor
& Axiom Workshop when Stephen was present. It's a pity that we forgot
that. But it seems the Aldor compiler is underspecified in dealing
recursive definitions of domains at runtime.
But wait, your are actually not doing that... well, you have to show the
'interpret' function (lower case).
Ralf
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Nice to see that you work hard on this.
(6)
ACIsomorphismType(ACInteger,Interpret([CONCATPlusPARENAGGLSTCONCATNOTHINGSing
letonSpeciesCONCATTimesPARENAGGLSTCONCATNOTHINGSelfCONCATNOTHINGSelf],ACInteg
er))
Type: Domain
[isomorphismTypes(m)$IsoT]$ACList(IsoT)
The value |Interpret| is not of type (SIMPLE-ARRAY T (*)).
-- comment --------------------------------------------------------------------
Interpret(p: List ExpressionTree, L: LabelType): CombinatorialSpecies L == {
import from InterpretingTools, LabelSpecies, List LabelSpecies;
l: LabelSpecies := first interpret p;
(coerce(l)$LabelSpecies)(L) add;
}
Of course, that's a hack to deal with the problem that Axiom treats functions
that return types specially.
But here you are going really really far. We have already discussed itACIsomorphismType(ACInteger,Interpret([CONCATPlusPARENAGGLSTCONCATNOTHINGSing
letonSpeciesCONCATTimesPARENAGGLSTCONCATNOTHINGSelfCONCATNOTHINGSelf],ACInteg
er))
Type: Domain
[isomorphismTypes(m)$IsoT]$ACList(IsoT)
The value |Interpret| is not of type (SIMPLE-ARRAY T (*)).
-- comment --------------------------------------------------------------------
Interpret(p: List ExpressionTree, L: LabelType): CombinatorialSpecies L == {
import from InterpretingTools, LabelSpecies, List LabelSpecies;
l: LabelSpecies := first interpret p;
(coerce(l)$LabelSpecies)(L) add;
}
Of course, that's a hack to deal with the problem that Axiom treats functions
that return types specially.
on the aldor-combinat mailing list.
What you want is that Aldor hopefully produces something reasonable out
of that. Actually, you should have raised this problem during the Aldor
& Axiom Workshop when Stephen was present. It's a pity that we forgot
that. But it seems the Aldor compiler is underspecified in dealing
recursive definitions of domains at runtime.
But wait, your are actually not doing that... well, you have to show the
'interpret' function (lower case).
Ralf
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/