Gimp-Forum.net
scheme : error in vector - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP)
+--- Thread: scheme : error in vector (/Thread-scheme-error-in-vector)



scheme : error in vector - geka - 05-03-2026

Hello,

I need to write a script for GIMP and I'm stuck on an error I don't understand.

I haven't found a solution to this problem.

Here's an example of a script that returns an error in a console schema:


Code:
(define
myvector (vector 'a 'b 'c 'd 'e)
)
(vector-set! myvector 2 'x)
Error: vector-set!: index must be exact: 2


Where is my error?

Thank you for your help.