if(;){} opinion
Walter Bright
newshound at digitalmars.com
Tue Feb 28 11:51:19 PST 2006
"Georg Wrede" <georg.wrede at nospam.org> wrote in message
news:44047C36.8060200 at nospam.org...
> Walter Bright wrote:
>> The idea behind m; was to be like foreach. What do the "victims" <g>
>> think of:
>>
>> if (auto m = std.regexp.search("abcdef", "b(c)d"))
>
> Another round, and everyone had no problem immediately understanding the
> code. And the word "auto" was universally assumed as in "autotype".
>
> Found one "still virgin" non-D programmer, and even he immediately assumed
> the correct functionality, and took for granted that "auto" meant that the
> compiler figures out the actual type.
Thanks for doing this. The result is pretty clear <g>.
More information about the Digitalmars-d
mailing list