From: Fred Cisin <cisin at
xenosoft.com
On Sat, 2 Jun 2007, dwight elvey wrote:
Hi Dave
I'd expect it to evaluate the left side of the equation first before
determining the address. A[2]=1. Any other order would not make
sense.
It would to some compiler authors. (who sometimes have a different
reality than you and I do)
Hi Fred
I'd expect the compile to do things in the needed order. Fetch the
value of N to do something with( do the first increment ), calculate
the address ( in doing so apply the second increment) and store the
value into the array.
---snip---
>Without meaning to offend you, I'm going
to guess that you started with
>FORTH and then branched out. There does seem to be less potential for
>ambiguity in a RPN language that has one operation per instruction.
>(which is what makes machine language so fulfilling)
Actually not. My first language exposure, like most, was BASIC.
About the same time, I was doing 8080 machine code and 8048
code. I then did a lot of work with PLM/80 and more 8080.
I fiddle a little with SmallTalk.
It was about this time that I was exposed to a HP 35 calculator.
With the combination of machine coding and high level languages
so far, I could clearly see that RPN was concise and didn't need
special thinking.
About the same time period, I got my first taste of Forth. I was
already sold on RPN and just had to learn what to do with the stack.
I've since played with apl enough to know it doesn't make sense
to me. Still it does look interesting from the standpoint of minimum
entry. I've also written a few macros in LISP for AutoCad stuff
and once for emacs.
I current deal mostly with verilog both gate level and behavior.
Still, I find that I'm most productive in Forth. Execution typically
reads left to right as most would have expected the example to
have done. There is no ambiguity about what is done when.
I like that! Others don't seem to like that :( In some sense, Forth
seems like machine language to most but I find that my code
reads like sentenses. Especially as I abstract farther from the
Forth low level words. It isn't English but it is clearly sentenses
stating just what I want done and when. I've not seen any other
language that does that and still has well defined excution
order.
I find that I factor code better and have less errors writing in
other languages after having been exposed to Forth. I still
enjoy writing in Forth more but few pay for that.
Dwight
_________________________________________________________________
Need a break? Find your escape route with Live Search Maps.
http://maps.live.com/default.aspx?ss=Restaurants~Hotels~Amusement%20Park&am…