D
danmc
Guest
(declare x[5])
(setq x[3] 7.2)
fails with *Error* setq: argument #1 should be a symbol (type template
= "sg") - x[3]
declare( x[5] )
x[3] = 7.2
works.
The manual says
"Sets a variable to a new value. setq is the same as the assignment (=)
operator. This is a syntax form."
So I'm puzzled. If I have a somewhat large program that is written
using skill style (foo x) instead of procedural style foo(x), how can I
assign an element in an array?
Thanks
-Dan
(setq x[3] 7.2)
fails with *Error* setq: argument #1 should be a symbol (type template
= "sg") - x[3]
declare( x[5] )
x[3] = 7.2
works.
The manual says
"Sets a variable to a new value. setq is the same as the assignment (=)
operator. This is a syntax form."
So I'm puzzled. If I have a somewhat large program that is written
using skill style (foo x) instead of procedural style foo(x), how can I
assign an element in an array?
Thanks
-Dan