Re: define anywhere

2021-06-11 Thread Damien Mattei
hello Linus, finally i tested your code with my program and it works. define worked in if in ssigma-sol-approx ( in *Preview:* ;; (load "SssRec.scm") ;;(use-modules (syntax define));;(use-modules (guile/define))(use-modules (guile define)) (include "first-and-rest.scm")(include "list.scm")(i

Re: define anywhere

2021-06-11 Thread Damien Mattei
about : https://www.gnu.org/software/guile/manual/html_node/Module-System-Reflection.html i do not want to implement things that are not portable to others schemes using standart macros and SRFI, for now my Scheme+ is a set of macros portable to other scheme and use only SRFI if they are implemente

Re: define anywhere

2021-06-11 Thread Damien Mattei
On Sun, Jun 6, 2021 at 3:36 PM Linus Björnstam wrote: > Oh, my version is an error. I implemented the macro before definitions in > (some) expression contexts were a thing. > do you talk about what? the linked code? > > Andy did a marvellous thing implementinf the new letrec: if it is > possibl

Re: define anywhere

2021-06-11 Thread Damien Mattei
i did not noticed there was an attachment link :-( i read your code, great work... i will read it more later Damien On Sat, Jun 5, 2021 at 5:24 PM Linus Björnstam wrote: > I implemented this hack before guile 3 got defines in function bodies: > https://hg.sr.ht/~bjoli/guile-define > > Even I gui