Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bad optimisations: (Was: Test version zsh-3.1.6-test-1)



Sven Wischnowsky wrote:
> Playing some more: both
> 
>     firstarg = (*args && **args == '?' ? *args++ : *args);
> 
> and
> 
>     if (*args && **args == '?')
>     	firstarg = *args++;
>     else
>         firstarg = *args;
> 
> work around the bug, too. Should I send a patch for one of these? They 
> probably keep the code better readable (although they don't look much
> less silly).

That might look a bit neater.  You'd better send it relative to the altered
code, so I don't have to spend all of 30 seconds backing that off.

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy



Messages sorted by: Reverse Date, Date, Thread, Author