[stack] Re: Parameters: ordered versus named
"kuwabatake" <[email protected]>
| Newsgroups | gmane.comp.lang.concatenative |
|---|---|
| Message-ID | <[email protected]> |
--- In [email protected], Manfred Von Thun <m.vonthun@...> wrote: > foo(x=a; y=b; z=c) > foo(y=b; z=c; x=a) > foo(z=c; y=b; x=a) Huh. This is very interesting. One thing that springs to mind is that some parts of assembly languages behave like this, using registers to hold arguments: MOVE x <- a MOVE y <- b MOVE z <- c CALL foo ..where the first three lines can be permuted any which way. In an even purer version of this idea, expressions might not be allowed on the right side of assignments (another `order matters' `anonymous temp value' kind of technique) so instead of MOVE x <- y + bar(1) you would need to write MOVE barIn <- 1 CALL bar MOVE +In1 <- y MOVE +In2 <- barOut CALL + MOVE x <- +Out ~Daniel