Hi. charlysangel (for...@gimpusers.com) wrote: > I've tried to read from file with code below > > (let* ((fd (fopen filename))) > (let* ( > (c (fread 1 fd)) > (res "") > ) > (while (and c (not (equal? c " "))) > (set! res (string-append res c)) > (set! c (fread 1 fd))) > (if (equal? res "") > () > (cons (string->number res) ()) > ) > ) > (gimp-message (string-append "PosX: " (number->string res))) > ) > > I do not understand why it returns :"Error: eval: unbound variable: res "
The inner let*-Block declaring the "res" variable is closed in the line immediately before the gimp-message call. Hence "res" is no longer available when evaluating the line with gimp-message, resulting in the error message you see. Bye, Simon -- si...@budig.de http://simon.budig.de/ _______________________________________________ gimp-user-list mailing list List address: gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list List archives: https://mail.gnome.org/archives/gimp-user-list