<Hunar>
Hello :D I have a small question.. in this tutorial https://picolisp-blog.hashnode.dev/getting-started-with-the-picolisp-database the code (new T) creates a new external symbol {2} , then she says that the following code is not recommended (put *DB 'newSym '{2}) but doesn't state what IS recommended, what is recommended then :|
<Hunar>
?
<Regenaxer>
Hi Hunar! Let me check
<Hunar>
I'm referring to this line (For demonstration purposes, we are accessing it now directly as {2}) how else can I access it when putting it in *DB
<Regenaxer>
Ah, OK, this means that in *programs* external symbols should not be written literally
<Regenaxer>
Never write {1} but use *DB
<Regenaxer>
Normally, you don't know (and don't care) that it is a symbol {2} or {A123} or whatever
<Regenaxer>
*if* {2} is used literally, it cannot be garbage-collected. That's the only reason
<Regenaxer>
can't be collected because it is referred to in the code
<Hunar>
Ah, so I just use (setq A (new T))?
<Regenaxer>
yes, exactly
<Hunar>
I overcomplicated it in my head :D
<Regenaxer>
yeah :)
<Hunar>
Thanks Regenaxer :)
<Regenaxer>
It is not an issue normally
<Regenaxer>
:)
<Hunar>
I have too many plans and too little time, I checking all the tutorials in that blog but the 5min reads turn into 4 hours:/ .. yesterday I added another plan to my todoList, making a picolisp binding for the raylib library .. I checked it last year using C, it was the easiest library to setup :D https://www.raylib.com/
<Regenaxer>
Nice idea
razzy has quit [Ping timeout: 264 seconds]
razzy has joined #picolisp
razzy has quit [Ping timeout: 246 seconds]
razzy has joined #picolisp
razzy has quit [Ping timeout: 246 seconds]
razzy has joined #picolisp
razzy has quit [Ping timeout: 250 seconds]
razzy has joined #picolisp
Hunar has quit [Quit: Client closed]
razzy has quit [Ping timeout: 246 seconds]
razzy has joined #picolisp
theruran has quit [Ping timeout: 256 seconds]
theruran has joined #picolisp
theruran has quit [Ping timeout: 250 seconds]
theruran has joined #picolisp
rob_w has quit [Remote host closed the connection]