Coordinate order in Array2D

Christopher Oliver oliver at fritz.co.traverse.com
Sun Jan 18 23:28:12 UTC 1998


Hey folk!  Why does Array2D at:at: and at:at:put: use a coordinate
order reversed from normal mathematical conventions?  The first
coordinate is traditionally the matrix row.  I just got bitten while
transliterating some cryptology code using matrices.  This sort of
difference can cause severe brain hemorrhage.

-- 
Christopher Oliver                     Traverse Communications
Systems Coordinator                    223 Grandview Pkwy, Suite 108
oliver at traverse.com                    Traverse City, Michigan, 49684
   (define magic (lambda (f) (lambda (x) x)))
   (define (more-magic n) (lambda (f) (lambda (x) (f ((n f) x)))))





More information about the Squeak-dev mailing list