[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Now this is a nightmare...
From: |
David Kastrup |
Subject: |
Now this is a nightmare... |
Date: |
Wed, 04 Jul 2018 12:28:43 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
scm_is_integer is not nearly a sufficient prerequisite for calling
scm_to_int (well, of course there are size limits but that's not what I
am talking about). Try
{ \repeat unfold #2.0 c'1 }
which crashes in some strange place. Use #2 instead and it works (of
course), use #2.5 and it fails in a proper manner with the intended kind
of error message.
We probably need some ly_is_integer instead that also checks for
scm_exact_p or so? Guile-2.0 has scm_is_exact_integer but Guile-1
apparently not.
--
David Kastrup
- Now this is a nightmare...,
David Kastrup <=