Possible bug in fn_gc?


#1

Discovered accidentally in fn_gc: Shouldn’t the line
if (args == NULL || first(args) != NULL) {

rather be
if (args == NULL || first(args) == NULL) {

? If the second condition tests “!=” the suppression of the gc messages does not work.


#2

I agree it’s a bit unintuitive, but I wanted to leave the default (with no argument) as “print time”. With an argument the options are:

(gc nil) - don’t print time
(gc t) - print time


#3

I see. It seems the reference entry does not match this, if I’m right, that’s why I stumbled across this: It says setting the option t leads to a silent garbage collection.


#4

Thanks! I’ll correct that.

On second thoughts - perhaps it’s more sensible to have it the way I’ve described it in the reference. I’m trying to remember why I changed my mind.