Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!usc!snorkelwacker.mit.edu!hsdndev!husc6!carlton From: carlton@husc10.harvard.edu (david carlton) Newsgroups: comp.lang.scheme Subject: Re: Logical operations on integers. Message-ID: Date: 9 Apr 91 00:18:36 GMT References: Sender: news@husc6.harvard.edu Distribution: comp Organization: Citizens for Boysenberry Jam Lines: 19 In-reply-to: bevan@cs.man.ac.uk's message of 5 Apr 91 08:21:19 GMT In article bevan@cs.man.ac.uk (Stephen J Bevan) writes: To provide a reasonably portable implementation of Icon like character sets in Scheme I need the equivalent of CommonLisp's logical operations on integers i.e. logand, logior ... etc. Shouldn't logical operations of this sort be included in a standard? Not necessarily in the base language, but perhaps something along the lines of ``if logical operations are provided they should be called X, Y, Z and they should do P, Q, R when applied to integers'' Do these really make sense when operating on bignums? And and or I can buy, at least when operating on non-negative bignums, but not not. Of course, at least one of the standards mentions fixnums - maybe it could encourage implementors to stick them in if the implementation supports fixnums. I think that it would be a bit ugly, though. david carlton carlton@husc9.harvard.edu