Re: for with break and continue

2022-09-05 Thread Damien Mattei
very interesting. Finally is our functions,at least one, for/bc compatible with R6RS? i can not exactly figure it exactly, i see at leats identifier-syntax not in the library index: http://www.r6rs.org/final/html/r6rs-lib/r6rs-lib-Z-H-21.html#node_index_start one day i will have to read the Dybvig

Re: for with break and continue

2022-09-04 Thread Jean Abou Samra
Le 04/09/2022 à 16:41, Damien Mattei a écrit : yes in fact a lot of function related to syntax (datum->syntax, etc) are not in R6RS and R7RS-small, datum->syntax actually *is* R6RS, in the "libraries" document. See http://www.r6rs.org/final/r6rs-lib.pdf page 55. (It is not in R7RS small,

Re: for with break and continue

2022-09-04 Thread Damien Mattei
yes in fact a lot of function related to syntax (datum->syntax, etc) are not in R6RS and R7RS-small, i have to keep that in mind because i want to write a library that could be portable between scheme implementation and that support curly-infix ,less than a number of scheme that count with the fing

Re: for with break and continue

2022-09-04 Thread Jean Abou Samra
Le 04/09/2022 à 14:00, Damien Mattei a écrit : yes very good then break si not overwritten, using module, i do not know if modules is finally standardised in R6RS, and in guile? Guile supports R6RS libraries, but it's not the same as its traditional use-modules/define-module forms. htt

Re: for with break and continue

2022-09-04 Thread Damien Mattei
yes very good then break si not overwritten, using module, i do not know if modules is finally standardised in R6RS, and in guile? a few problem with module i hope to fix it later but it works with your example, not sure let/ec is standart? i will continue later Damien On Sun, Sep 4, 2022 at 1

Re: for with break and continue

2022-09-04 Thread Jean Abou Samra
Le 04/09/2022 à 11:54, Damien Mattei a écrit : i try to make a for with break and continue the way C language do it, i works with break but if i add a continue feature i then loose the break feature, here is my code: (define-syntax for/bc (lambda (stx) (syntax-case stx () ((kwd (i