Re: Macro for replacing a placeholder in an expression

2022-07-28 Thread Zelphir Kaltstahl
Hello Maxime! Thank you for your quick response! (Mailing list saves me again! Yay!) On 7/28/22 03:04, Maxime Devos wrote: On 28-07-2022 01:57, Zelphir Kaltstahl wrote: scheme@(guile-user)> (define-syntax test   (syntax-rules (lambda)     [(_ (op args body* ...)) ((test op) (test args) (

Re: Macro for replacing a placeholder in an expression

2022-07-28 Thread Maxime Devos
On 28-07-2022 10:39, Zelphir Kaltstahl wrote: I aimed to do everything with syntax-rules, as the simplest means, but when writing the code I have, I hit the snag, that one could not have multiple ellipses at the same level of nesting in the patterns. IIUC, you mean: (syntax-rules ()   ((foo

Re: Macro for replacing a placeholder in an expression

2022-07-28 Thread Zelphir Kaltstahl
Hello Maxime! On 7/28/22 02:55, Maxime Devos wrote: These macros all sound more complicated than necessary -- on the first one, I've sent you a message with sneek: ;; By: Maxime Devos ;; This does not recurse into #(...). ;; Also, such a construct does not nest well, you can't put a replac

Re: Macro for replacing a placeholder in an expression

2022-07-28 Thread Maxime Devos
On 28-07-2022 12:23, Zelphir Kaltstahl wrote: I'll need to look at this and learn about eval-when The eval-when is only required if the macro is 'run' when the module holding the macro is compiled (to avoid some compilation failures); often the eval-when can be dropped. Greetings, Maxime.

Re: Macro for replacing a placeholder in an expression

2022-07-28 Thread Zelphir Kaltstahl
On 7/28/22 11:48, Maxime Devos wrote: On 28-07-2022 10:39, Zelphir Kaltstahl wrote: I aimed to do everything with syntax-rules, as the simplest means, but when writing the code I have, I hit the snag, that one could not have multiple ellipses at the same level of nesting in the patterns. II

Re: G-Golf - handling of unresloved symbols in gobject-inspection

2022-07-28 Thread Andy Tai
Thanks for the fix. Now G-Golf works on Ubuntu 20.04, which has GI 1.64, an old version On Wed, Jul 27, 2022 at 6:23 PM David Pirotte wrote: > > Hello Andy, > > > > For example, on GNU Guix, the GI version is for now at 0.64. So > > > G-Golf, when invoked from a guile program using it, would f