test-equal: actual returned value is #f when tested expression raises execption

2021-02-20 Thread Jérémy Korwin-Zmijowski
Dear Schemers, As a Guile user, I rely mostly on srfi-64 to write tests. Recently, a Guile fellow pointed out a strange behavior from one of my code : Say I write a test suite : ;; char-sets-test.scm (use-modules (srfi srfi-64) (char-sets)) (test-begin "harness-char-s

Re: test-equal: actual returned value is #f when tested expression raises execption

2021-02-20 Thread divoplade
Hello, This is what I understand from guile. I am no expert, so maybe it is not 100% accurate! Le samedi 20 février 2021 à 12:03 +0100, Jérémy Korwin-Zmijowski a écrit : > > Running `guile -L . char-sets-test.scm` in the file location will > produce the following output : > >$ guile -L . ch

Participating to Guile Potluck

2021-02-20 Thread Tommi Höynälänmaa
Hi I'll participate to Guile Potluck. I have got a Guile-based project Theme-D implementing a statically typed Scheme-like programming language. Actually Theme-D enables both static and dynamic typing. I have also made software libraries Theme-D-Gnome and Theme-D-Golf that allow the use of th

Re: test-equal: actual returned value is #f when tested expression raises execption

2021-02-20 Thread Jérémy Korwin-Zmijowski
Hi Divoplade, Thank you for your explanation. I might not have put enough emphase on my issue. When you said: "However, since now there's a char-sets.scm, it can use the module and find the function, and everything works correctly." My concern here is that I did not defined the procedure in the

Re: Guile Potluck 2021

2021-02-20 Thread Alex Sassmannshausen
Hi Mike, Great to see you organise to continue this hallowed tradition! :-) I would love to participate by cheating a little and submitting a new release of Guile Hall, which is overdue and should happen between 1 and 6 March. Best wishes, Alex Mike Gran writes: > Hello All- > > In celebrat

env, -l and command line arguments

2021-02-20 Thread Formbi
Hi I'd like to make a script and be able to jump into the REPL if needed (for example if «--repl» is not passed, «(exit)» is run). I also run Guile through env -S, because I'm on Guix and I wanna make the script portable. However, I can't find an easy way to do it. When I use «-l» and pass some

C extensions

2021-02-20 Thread Tim Meehan
I'm trying my hand a writing C extensions. I've done this for stuff like Matlab before, and was wondering how you do the usual checking of the arguments that are passed in from Guile. In the manual, 6.13.13.1 "C Support" has a few functions. libguile/numbers.h has a bunch more ... What I have is

Re: C extensions

2021-02-20 Thread Nala Ginrut
Hi Tim! I think you may try these functions: scm_is_true scm_is_real_p scm_geq_p Best regards. On Sun, Feb 21, 2021 at 11:57 AM Tim Meehan wrote: > I'm trying my hand a writing C extensions. > I've done this for stuff like Matlab before, and was wondering how you do > the usual checking of the

Re: env, -l and command line arguments

2021-02-20 Thread Nala Ginrut
Hi Fombi! I find it's not easy to understand what you want to do, could you give us an example? Best regards. On Sun, Feb 21, 2021 at 7:43 AM Formbi wrote: > Hi > > I'd like to make a script and be able to jump into the REPL if needed (for > example if «--repl» is not passed, «(exit)» is run).