Array element type: CLISP / SBCL
Posted: Sat Nov 10, 2012 9:46 am
Hi all,
glad to be a fresh new member of this forum. I'm pretty sure to spend a lot of time reading it!
here is my question:
I'm trying to understand differences between array in CLISP and SBCL.
It appears that the following 2 lines work well in CLISP but raise type-error in SBCL (SBCL doesn't allow to replace a matrix element by an expression, nor a integer, etc...)
(setq x (make-array '(10 3) :element-type 'double-float) )
(setf (aref x 0 0) 'foo)
Is really CLISP so user-friendly?
It seems to be a real difference, leading to (i guess) significative performance difference too!
glad to be a fresh new member of this forum. I'm pretty sure to spend a lot of time reading it!
here is my question:
I'm trying to understand differences between array in CLISP and SBCL.
It appears that the following 2 lines work well in CLISP but raise type-error in SBCL (SBCL doesn't allow to replace a matrix element by an expression, nor a integer, etc...)
(setq x (make-array '(10 3) :element-type 'double-float) )
(setf (aref x 0 0) 'foo)
Is really CLISP so user-friendly?
It seems to be a real difference, leading to (i guess) significative performance difference too!