From: Geoffrey K. <ge...@kn...> - 2004-06-17 15:04:36
|
Never mind. I should have tried eqv? too. For the record: JScheme: (eq? 128 128) => #f ;; 2^8 (eq? 127 127) => #t (eqv? 128 128) => #t PLT Scheme v207: (eq? 1073741824 1073741824) => #f ;; 2^30 (eq? 1073741823 1073741823) => #t (eqv? 1073741824 1073741824) => #t Geoffrey -- Geoffrey S. Knauth | http://knauth.org/gsk On Jun 17, 2004, at 06:50, Geoffrey Knauth wrote: > I ran into this while calculating azimuths. > > > (eq? 180 180) > #f > > (= 180 180) > #t > > (eq? 0 0) > #t > > (eq? 1 1) > #t > > (eq? 2 2) > #t > > (eq? 3 3) > #t > > (eq? 180 180) > #f > > After poking around, I found this: > > > (eq? 127 127) > #t > > (eq? 128 128) > #f > > (eq? -127 -127) > #t > > (eq? -128 -128) > #f > > For now I'll use = instead of eq?. I was just wondering if this was > documented. > > Geoffrey > -- > Geoffrey S. Knauth | http://knauth.org/gsk > > > > ------------------------------------------------------- > This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference > Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer > Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA > REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code > NWMGYKND > _______________________________________________ > Jscheme-devel mailing list > Jsc...@li... > https://lists.sourceforge.net/lists/listinfo/jscheme-devel > |