[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Axiom-developer] Re: [Axiom-mail] Assigning to Element of Array of
From: |
Martin Rubey |
Subject: |
Re: [Axiom-developer] Re: [Axiom-mail] Assigning to Element of Array of Records Doesn't Seem to Work |
Date: |
08 Aug 2007 14:51:48 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 |
Ralf Hemmecke <address@hidden> writes:
> I think you have just found a bug in the Axiom interpreter/compiler.
I just did the following:
-- assign.as --------------------------------------------------
#include "axiom"
INT ==> Integer;
R ==> Record(k: INT, rad: INT);
import from R, INT;
initrec(): R == [0,0];
main(): PrimitiveArray R == {
xs: List R := [initrec() for i in 1..3];
import from PrimitiveArray R, List R;
ys: PrimitiveArray R := construct [z for z in xs];
ys(2).k := 10;
ys;
}
----------------------------------------------------------------
(1) -> )co assign
Compiling AXIOM source code from file
/users/rubey/aldor-test/assign.as using AXIOM-XL compiler and
options
-O -Fasy -Fao -Flsp -laxiom -Mno-AXL_W_WillObsolete -DAxiom -Y $AXIOM/algebra
Use the system command )set compiler args to change these
options.
#1 (Warning) Deprecated message prefix: use `ALDOR_' instead of `_AXL'
Compiling Lisp source code from file ./assign.lsp
Issuing )library command for assign
Reading /users/rubey/aldor-test/assign.asy
(1) -> main()
(1) [[k= 0,rad= 0],[k= 0,rad= 0],[k= 10,rad= 0]]
Type: PrimitiveArray Record(k: Integer,rad: Integer)
So it really really really should go away.
Martin
- [Axiom-developer] Re: [Axiom-mail] Assigning to Element of Array of Records Doesn't Seem to Work, Ralf Hemmecke, 2007/08/08
- Re: [Axiom-developer] Re: [Axiom-mail] Assigning to Element of Array of Records Doesn't Seem to Work, Martin Rubey, 2007/08/08
- Re: [Axiom-developer] Re: [Axiom-mail] Assigning to Element of Array of Records Doesn't Seem to Work, Ralf Hemmecke, 2007/08/08
- Re: [Axiom-developer] Re: [Axiom-mail] Assigning to Element of Array of Records Doesn't Seem to Work, Ralf Hemmecke, 2007/08/08
- Re: [Axiom-developer] Re: [Axiom-mail] Assigning to Element of Array of Records Doesn't Seem to Work, Bill Page, 2007/08/08
- Re: [Axiom-developer] Re: [Axiom-mail] Assigning to Element of Array of Records Doesn't Seem to Work, Ralf Hemmecke, 2007/08/08
- Re: [Axiom-developer] Re: [Axiom-mail] Assigning to Element of Array of Records Doesn't Seem to Work, Bill Page, 2007/08/08
- Re: [Axiom-developer] Re: [Axiom-mail] Assigning to Element of Array of Records Doesn't Seem to Work, Martin Rubey, 2007/08/08
- Re: [Axiom-developer] Re: [Axiom-mail] Assigning to Element of Array of Records Doesn't Seem to Work, Bill Page, 2007/08/08
Re: [Axiom-developer] Re: [Axiom-mail] Assigning to Element of Array of Records Doesn't Seem to Work,
Martin Rubey <=