This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Serious eq? bug?


>>>> In message <199808081236.PAA08622@blinky.bfr.co.il>
>>>> Sent on Sat, 8 Aug 1998 15:36:17 +0300
>>>> Honorable "Harvey J. Stein" <hjstein@bfr.co.il> writes
>>>> on the subject of "Serious eq? bug?":
 >> Consider the following:
 >> 
 >>    hjstein@bacall:~$ guile
 >>    guile> (eq? (string->symbol "-a") '-a)
 >>    #t
 >>    guile> (eq? (string->symbol "-b") '-b)
 >>    #t
 >>    guile> (eq? (string->symbol "-i") '-i)
 >>    #f
 >> 
 >> Is this expected behavior for an R4RS scheme which supports complex
 >> number?  If so, it's a real pain in the ass for command line
 >> processing...

I am afraid the problem is deeper than mere eq?.
It looks like both -i and '-i are the negative imaginary unit, while i
and 'i are ordinary symbols.

It would seem wrong to interpret -i as a number.

-- 
Sam Steingold, running RedHat5.1 GNU/Linux (http://www.linux.org)
Micros**t is not the answer. Micros**t is a question, and the answer is Linux,
the choice of the GNU (http://www.gnu.org) generation.
If brute force does not work, you are not using enough.