On 10 Feb 2006 23:34:15 +0100, Viktor Griph wrote: > > Seeing that there has only been one new command in the last 2.5 years I > think it was time to add another. ;)
No, it means it is a time to spend all energy on releasing 2.6. :) Then any number of new commands and new features may be added. > I think that a parameter shifting command for use in functions could be > useful. It could be used for small recursive (yes I know, that would not > be very efficient) function calls: > AddToFunc Inline > + I $0 > + I Shift > + I Inline $* > > A sample call of the above would be > Function Inline "WindowStyle !Title, !Borders, !Handles" UpdateStyles \ > "Maximize 100 100" Break > > Appart from that it would also provide meanns to get direct access to > positional paramiters after $9. > > Thoughts? Is this something that anyone but me would use? There is a problem with variables looking like $X on the command line. I don't know whether we should absolete $0 .. $9 and $. plus $*. Maybe not. But at least, as the first step we may start to support $[0], $[12]. As well as $[2-5] (four arguments starting from the third, space separated). This, together with the filter/quoting suggestion for all variables http://www.mail-archive.com/fvwm-workers@hpc.uh.edu/msg05721.html should make your Shift command redundant. Regards, Mikhael.