Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - nodrog_reversed

#1
Hi,



A "newbie" question. Sorry if it's been asked before - couldn't find anything with a search.



Can you use link.lsp (or variant) to bind code to the newlisp-tk executable. I'm just thinking of making an executable with GUI that can be used/distributed as a single file. I tried with the link.lsp from source but it wasn't working for this case.



Thanks,

Gordon.
#2
Hi,



I just started playing with newLisp and was trying the sqlite3 interface as supplied in the source code.



I found that there is a bug in the code - errors not being returned properly. So I'll submit it here. Sorry if this is the wrong part of the forum - or if this is well kown and already addressed.



The new code is:



(define (set-error)

   (set 'result (sqlite3_errmsg db))

   (if (= result 0)

      (set 'error-message "")

      (set 'error-message (get-string result))))



Fix is in last line - in the source it did (get-string error-message) but should be (get-string result).



Cheers,

Gordon.