Re: Does the eval-when example work?

2022-10-23 Thread Jean Abou Samra
Le 19/10/2022 à 22:47, Jean Abou Samra a écrit : This code is behaving as expected. The manual's description of the example and the naming "*compilation-date*" look buggy, however. I've submitted a patch to fix this. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58646 Best, Jean

Re: Does the eval-when example work?

2022-10-21 Thread Vivien Kraus
Le jeudi 20 octobre 2022 à 10:53 +0200, Maxime Devos a écrit : >  If so, this is not exactly what I am looking for. I am looking for a > > way to run the (date) form during the compilation phase, and save > > the > > date to the compilation unit so that it does not change. Is this > > possible? >

Re: Does the eval-when example work?

2022-10-20 Thread Maxime Devos
On 19-10-2022 22:32, Vivien Kraus wrote: Dear guile users, The manual, section 6.8.8, presents the eval-when form with an example: > [...] If so, this is not exactly what I am looking for. I am looking for a way to run the (date) form during the compilation phase, and save the date to the

Re: Does the eval-when example work?

2022-10-19 Thread Jean Abou Samra
Le 19/10/2022 à 22:32, Vivien Kraus a écrit : Dear guile users, The manual, section 6.8.8, presents the eval-when form with an example: (use-modules (srfi srfi-19)) (eval-when (expand load eval) (define (date) (date->string (current-date (define-syntax %date (identifier-syntax (date)))

Does the eval-when example work?

2022-10-19 Thread Vivien Kraus
Dear guile users, The manual, section 6.8.8, presents the eval-when form with an example: (use-modules (srfi srfi-19)) (eval-when (expand load eval) (define (date) (date->string (current-date (define-syntax %date (identifier-syntax (date))) (define *compilation-date* %date) I take the