if(;){} opinion
Walter Bright
newshound at digitalmars.com
Tue Feb 28 02:04:49 PST 2006
"clayasaurus" <clayasaurus at gmail.com> wrote in message
news:dtvmkf$2e1a$1 at digitaldaemon.com...
> I'll vote against it because I don't understand the value of
>
> if (m; search("abcdef", "BcdasdfD"))
>
> over
>
> if (Regexp m = search("abcdef", "BcdasdfD") ) .
>
> Maybe someone can enlighten me?
1) m is implicitly typed
2) looks like the foreach
3) more concise
More information about the Digitalmars-d
mailing list