Re: some possible bugs and getting procedure on the top of the stack

2016-03-20 Thread Alex Vong
l...@gnu.org (Ludovic Courtès) writes: > Hello! > > Did you mean to email guile-user@gnu.org? > Yes! > Alex Vong skribis: > >> When trying to write some C binding to flex using libguile-2.0, I notice > > FWIW, I’d suggest using something like Danny Dubé’s SILex instead of > writing bindings to

Re: How to define user reader macro in guile?

2016-03-20 Thread Panicz Maciej Godek
2016-03-20 11:38 GMT+01:00 Park SungMin : > > is it possible to expand via squared-bracket. > > i.e... [1 2 3] => (list 1 2 3) [(+ 1 2) 3] => (list (+ 1 2) 3) > > > I know (read-enable 'square-brackets) ...but It just same paren. > > [1 2 3] => (1 2 3) > > is it possible? > The closest thing

How to define user reader macro in guile?

2016-03-20 Thread Park SungMin
is it possible to expand via squared-bracket. i.e... [1 2 3] => (list 1 2 3) [(+ 1 2) 3] => (list (+ 1 2) 3) I know (read-enable 'square-brackets) ...but It just same paren. [1 2 3] => (1 2 3) is it possible?

Re: How to do "ls /tmp > /dev/null" in Guile?

2016-03-20 Thread Marko Rauhamaa
Alex Kost : > Ah, thanks! I get it. But I also want to check an exit status of the > running command (sorry, that I didn't mention it). So I would like to > have the following procedure: > > (define (system-no-output* . args) > "Like 'system*' but suppress the output of the command indicated

Re: How to do "ls /tmp > /dev/null" in Guile?

2016-03-20 Thread Alex Kost
Marko Rauhamaa (2016-03-19 14:02 +0300) wrote: > Alex Kost : > >> Hello, in the guile REPL I evaluated the following: >> >> (with-output-to-port (%make-void-port "w") >> (lambda () (display "foo") (newline))) >> >> and I got no output as expected. Then I tried the following: >> >> (with-o