Catching

2010-02-22 Thread Hans Aberg
I seem to not get the catch handler called, when using guile interactively. Might you provide a small example? Something like: (catch 'FOO (throw 'FOO "Test") (lambda (x . xt) (display x) (display " . ") (display xt))) (catch #t (throw 'FOO "Test") (lambda (x . xt) (display x) (display " . ")

Re: Catching

2010-02-22 Thread Ludovic Courtès
Hi, Hans Aberg writes: > I seem to not get the catch handler called, when using guile > interactively. Might you provide a small example? Something like: > (catch 'FOO (throw 'FOO "Test") (lambda (x . xt) (display x) (display > " . ") (display xt))) The second argument of ‘catch’ should be a th

Re: Catching

2010-02-22 Thread Hans Aberg
On 22 Feb 2010, at 14:22, Ludovic Courtès wrote: I seem to not get the catch handler called, when using guile interactively. Might you provide a small example? Something like: (catch 'FOO (throw 'FOO "Test") (lambda (x . xt) (display x) (display " . ") (display xt))) The second argument of ‘ca

C++ wrap

2010-02-22 Thread Hans Aberg
I have written a bit on a C++ wrap - has this been done? I use templates to get a static typed style similar to that of Haskell, which can be overridden at need. Some example code below. Hans #include "src/guile.hh" #include #include #include int inner_main(std::pair* argp) {

Re: C++ wrap

2010-02-22 Thread Andy Wingo
On Mon 22 Feb 2010 15:01, Hans Aberg writes: > I have written a bit on a C++ wrap - has this been done? I use templates > to get a static typed style similar to that of Haskell, which can be > overridden at need. Some example code below. Looks like fun! You should throw your code up somewhere f

Re: C++ wrap

2010-02-22 Thread Hans Aberg
On 22 Feb 2010, at 20:06, Andy Wingo wrote: I have written a bit on a C++ wrap - has this been done? I use templates to get a static typed style similar to that of Haskell, which can be overridden at need. Some example code below. Looks like fun! You should throw your code up somewhere for