Larry Gilbert wrote on Sun, Sep 21, 2008 11:00 PM UTC:
Hello Fergus,
I appreciate your help with this! I'll admit that the initial learning curve has been steep for me. It's been so long since I did anything with Polish notation that I'm basically starting over (but I'm learning to appreciate it again, too).
I will study your new example of the cond operator more closely. For right now, here is some code that I think will illustrate the problem I'm having with the reverse operator. And it may either be a bug or just my misunderstanding of how things should work.
set arrayvar ray a1 1 1;
set reversedarray reverse #arrayvar;
dump;
exit;
What I was expecting to see in the dump was reversedarray having the same contents as arrayvar, but in reversed order. Instead, I get this:
Hello Fergus,
I appreciate your help with this! I'll admit that the initial learning curve has been steep for me. It's been so long since I did anything with Polish notation that I'm basically starting over (but I'm learning to appreciate it again, too).
I will study your new example of the cond operator more closely. For right now, here is some code that I think will illustrate the problem I'm having with the reverse operator. And it may either be a bug or just my misunderstanding of how things should work.
What I was expecting to see in the dump was reversedarray having the same contents as arrayvar, but in reversed order. Instead, I get this: