Artifact d44c2e9a483803d453351cfcd4acb51b13c93d834e7fd996027ca72dd727a48f:
- File
psl-1983/3-1/util/demo-defstruct.red
— part of check-in
[eb17ceb7f6]
at
2020-04-21 19:40:01
on branch master
— Add Reduce 3.0 to the historical section of the archive, and some more
files relating to version sof PSL from the early 1980s. Thanks are due to
Paul McJones and Nelson Beebe for these, as well as to all the original
authors.git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/historical@5328 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 614) [annotate] [blame] [check-ins using] [more...]
- File
psl-1983/util/demo-defstruct.red
— part of check-in
[eb17ceb7f6]
at
2020-04-21 19:40:01
on branch master
— Add Reduce 3.0 to the historical section of the archive, and some more
files relating to version sof PSL from the early 1980s. Thanks are due to
Paul McJones and Nelson Beebe for these, as well as to all the original
authors.git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/historical@5328 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 614) [annotate] [blame] [check-ins using]
% Sample of use of <Fish.iact>DefStruct.RED % See <fish.iact>Defstruct.HLP Defstruct(Complex, R, I); Defstruct(Complex, R(0), I(0)); % Redefine to see what functions defined % Give 0 Inits C0:=MakeComplex(); ComplexP C0; C1:=MakeComplex(('R . 1), ('I . 2)); AlterComplex(C1,'(R . 2), '(I . 3)); Put('R,'Assign!-op,'PutR); % for LHS. R(C1):=3; I(C1):=4; C1; % Show use of Include Option. Defstruct(MoreComplex(!:Include(Complex)),Z(99)); Defstruct(MoreComplex(!:Include(Complex)),Z(99)); M0 := MakeMoreComplex(); M1:=MakeMoreComplex('R . 1, 'I . 2, ' Z . 3); R C1; R M1;