[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gh_inexact_p error in 1.7.x
From: |
Bruce Korb |
Subject: |
gh_inexact_p error in 1.7.x |
Date: |
Wed, 30 Nov 2005 16:16:22 -0800 |
User-agent: |
KMail/1.7.1 |
Hi Rob et al.,
Now for something completely different. Obviously, I have not yet
updated my code to figure out what sort of thing it is that I got
back from my eval call. Nevertheless, my understanding was that
you ought to be able to call WHATEVER_p with any bit pattern and
have it say, "Yes, it is" or "No, it is not" without a fail-exit.
Not true in Guile 1.7.2. Is this fixed? Thanks! - Bruce
typ = (SCM) 0x504
28 LOCAL teGuileType
29 gh_type_e( SCM typ )
- 30 {
- 31 if (gh_boolean_p( typ )) return GH_TYPE_BOOLEAN;
- 32 if (gh_symbol_p( typ )) return GH_TYPE_SYMBOL;
- 33 if (gh_char_p( typ )) return GH_TYPE_CHAR;
- 34 if (gh_vector_p( typ )) return GH_TYPE_VECTOR;
- 35 if (gh_pair_p( typ )) return GH_TYPE_PAIR;
- 36 if (gh_number_p( typ )) return GH_TYPE_NUMBER;
- 37 if (AG_SCM_STRING_P( typ )) return GH_TYPE_STRING;
- 38 if (gh_procedure_p( typ )) return GH_TYPE_PROCEDURE;
- 39 if (gh_list_p( typ )) return GH_TYPE_LIST;
- 40 if (gh_inexact_p( typ )) return GH_TYPE_INEXACT;
<<=== throws error
- 41 if (gh_exact_p( typ )) return GH_TYPE_EXACT;
42
- 43 return GH_TYPE_UNDEFINED;
- 44 }
- gh_inexact_p error in 1.7.x,
Bruce Korb <=