bug#59540: Calling length on a very long improper list is disastrous.

2022-12-12 Thread lloda
> On 10 Dec 2022, at 18:27, Ludovic Courtès wrote: > > ... > Of these only #2 is something we could work on. However, truncation has > proven to be a hindrance sometimes (in backtraces, objects are > automatically), so I’m not sure we want to enable it by default on > wrong-type-arg error mes

bug#59540: Calling length on a very long improper list is disastrous.

2022-12-12 Thread Ludovic Courtès
Hi, lloda skribis: > I think excessive output is a more serious problem, because it should be > possible to go to a backtrace frame and look at objects directly. On the > other hand, it should also be possible to C-c when guile starts to flood the > terminal. But neither of these workarounds

bug#36682: Error in Guile scripting examples

2022-12-12 Thread Maxim Cournoyer
Hello, Arne Babenhauserheide writes: > Hello Hans-Werner Roitzsch, > > It looks like you’re mixing up two concepts: the fac creates a module > and loads the fact which is not a module, so basically main and choose > live in another namespace than fact (define-module starts a new > namespace). >

bug#60022: configure.ac fix for C99 compatibility

2022-12-12 Thread Florian Weimer
This patch is needed to improve C99 compatibility: diff --git a/configure.ac b/configure.ac index b3879df1f..cc865a028 100644 --- a/configure.ac +++ b/configure.ac @@ -904,7 +904,7 @@ AC_CACHE_VAL(guile_cv_localtime_cache, AC_RUN_IFELSE([AC_LANG_SOURCE([[#include #include extern char **enviro

bug#52835: [PATCH 0/2] Fix spawning a child not setting standard fds properly

2022-12-12 Thread Ludovic Courtès
Hello, Josselin Poiret skribis: >> I would call this one ‘primitive-spawn’ rather than ‘spawn*’ and keep it >> private to (ice-9 popen). > > Is there any reason we would want this to not be accessible to the user? > There are already a bunch of functions that manipulate raw fdes, and > people mi

bug#36682: Error in Guile scripting examples

2022-12-12 Thread Maxim Cournoyer
Hi, Maxim Cournoyer writes: [...] > I have the following two files: > > fact: > > #!/run/current-system/profile/bin/guile \ > -e main -s > !# > (define-module (fact) > #:export (fact)) > > (define (fact n) > (if (zero? n) 1 > (* n (fact (- n 1) > > (define (main args) > (display (f