Date: Wed, 27 Sep 2000 16:25:34 -0700
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Max Zwingli <maxzwingli@MAIL.NU>
Subject: How to reverse variables
Thanks to Wei Yen, Paul Dorfman, Harry Doogendyk, Richard Graham, Peter Crawford for their instant help. As a summary, I asked how to reverse a 1-byte character array with &N elements without using an additional intermediate array to hold the elements in the reverse order. The one-array solution adopted is to swap opposite elements and move towards center as offered by Paul Dorfman. Actually Paul went further and offered a zero-array (!) solution I would never even suspect could exist
Up until I saw this rather unusual code, I never thought that poke, peek and addr could be of any practical use whatsoever.
Get Your Own .NU Web Address Now! ---> http://WWW.NUNAMES.NU