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

2022-07-27 Thread David Pirotte
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 fail > > with > > ;;; In procedure dlsym: Error resolving > > "g_callable_info_create_closure": > >

Re: Macro for replacing a placeholder in an expression

2022-07-27 Thread Maxime Devos
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) (test body* ...))]     [(_ thing1 thing2 things* ...) ((test thing1) (test thing2 things* ...))]     [(_ (thing))

Re: Macro for replacing a placeholder in an expression

2022-07-27 Thread Maxime Devos
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 replace-result-placeholder inside a

Macro for replacing a placeholder in an expression

2022-07-27 Thread Zelphir Kaltstahl
Hello Guile Users, I am trying to write a macro, which replaces all placeholders (in this case ) with an identifier in an arbitrarily structured expression (arbitrary nesting of expressions). I have the following code now: (define-syntax replace-result-placeholder (syntax-rules (