Re: 7.0 wishlist?
- From: Joshua Cranmer <Pidgeot18@xxxxxxxxxxxxxxx>
- Date: Thu, 13 Nov 2008 17:33:24 -0500
Harold Yarmouth wrote:
Joshua Cranmer wrote:Harold Yarmouth wrote:Joshua Cranmer wrote:((array[i++] << 8) & 0xff) | (array[i++] & 0xff)
That is side effects.
That is bit-twiddling, not matrix multiplication.
It is very much the same vein.
Hardly.
Boolean or is a binary operation that is commutative in mathematical terms. So is addition. The point is that any operation in computer science is not commutative.
The idea that pure mathematics does not match computational reality is not limited to this point of commutativity. Note, for example, that making a Square class extend a Rectangle (since a Square is-a Rectangle) does not actually work since it would fail to match the Rectangle's contract.
--
Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth
.
- Follow-Ups:
- Re: 7.0 wishlist?
- From: Harold Yarmouth
- Re: 7.0 wishlist?
- From: Andreas Leitgeb
- Re: 7.0 wishlist?
- References:
- Re: 7.0 wishlist?
- From: Harold Yarmouth
- Re: 7.0 wishlist?
- From: Joshua Cranmer
- Re: 7.0 wishlist?
- From: Harold Yarmouth
- Re: 7.0 wishlist?
- From: Joshua Cranmer
- Re: 7.0 wishlist?
- From: Harold Yarmouth
- Re: 7.0 wishlist?
- From: Joshua Cranmer
- Re: 7.0 wishlist?
- From: Harold Yarmouth
- Re: 7.0 wishlist?
- From: Joshua Cranmer
- Re: 7.0 wishlist?
- From: Harold Yarmouth
- Re: 7.0 wishlist?
- From: Joshua Cranmer
- Re: 7.0 wishlist?
- From: Harold Yarmouth
- Re: 7.0 wishlist?
- Prev by Date: Re: 7.0 wishlist?
- Next by Date: Re: 7.0 wishlist?
- Previous by thread: Re: 7.0 wishlist?
- Next by thread: Re: 7.0 wishlist?
- Index(es):
Relevant Pages
|