diff options
author | dos-reis <gdr@axiomatics.org> | 2011-01-31 14:14:08 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2011-01-31 14:14:08 +0000 |
commit | 308c8ede509d3d186d6d43402b5335867ebdb49e (patch) | |
tree | b2e5516092366985a775f609bb3033b7eede626f /src/algebra/data.spad.pamphlet | |
parent | 03c09deff90cb2eb7a85730f7e74bce2df268b47 (diff) | |
download | open-axiom-308c8ede509d3d186d6d43402b5335867ebdb49e.tar.gz |
* interp/g-opt.boot ($VMsideEffectFreeOperators): Remove QCDR,
QCAR. SYMBOLP, GREATERP.
Add %ibit, %ilength, %ident, %equal.
* interp/g-util.boot: Expand them
* algebra/any.spad.pamphlet: Tidy.
* algebra/catdef.spad.pamphlet: Likewise.
* algebra/data.spad.pamphlet: Likewise.
* algebra/domain.spad.pamphlet: Likewise.
* algebra/float.spad.pamphlet: Likewise.
* algebra/fname.spad.pamphlet: Likewise.
* algebra/integer.spad.pamphlet: Likewise.
* algebra/list.spad.pamphlet: Likewise.
* algebra/outform.spad.pamphlet: Likewise.
* algebra/random.spad.pamphlet: Likewise.
* algebra/sex.spad.pamphlet: Likewise.
* algebra/si.spad.pamphlet: Likewise.
* algebra/symbol.spad.pamphlet: Likewise.
* algebra/syntax.spad.pamphlet: Likewise.
Diffstat (limited to 'src/algebra/data.spad.pamphlet')
-rw-r--r-- | src/algebra/data.spad.pamphlet | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/algebra/data.spad.pamphlet b/src/algebra/data.spad.pamphlet index 06a73cf8..744db27c 100644 --- a/src/algebra/data.spad.pamphlet +++ b/src/algebra/data.spad.pamphlet @@ -401,6 +401,8 @@ DataArray(N: PositiveInteger, T: SetCategory): Public == Private where ++ setelt(b,i,x) sets the ith entry of data buffer `b' to `x'. ++ Indexing is 0-based. Private == add + import %equal: (%,%) -> Boolean from Foreign Builtin + new() == makeSimpleArray(getVMType(T)$Foreign(Builtin),N)$Foreign(Builtin) @@ -411,7 +413,7 @@ DataArray(N: PositiveInteger, T: SetCategory): Public == Private where setSimpleArrayEntry(b,i,x)$Foreign(Builtin) x = y == - EQUAL(x,y)$Foreign(Builtin) + %equal(x,y) coerce(b: %): OutputForm == bracket([qelt(b,i)::OutputForm for i in 0..(N-1)]) |