endsWith: wrong function call, no error

Chris wendlec at tcd.ie
Mon Oct 21 08:26:15 PDT 2013


On Monday, 21 October 2013 at 15:21:21 UTC, bearophile wrote:
> Chris:
>
>> Is this ok or a bug?
>
> In my opinion it's a design bug inherited from C/C++ languages. 
> Please vote for this issue:
>
> http://d.puremagic.com/issues/show_bug.cgi?id=3827
>
> Walter once agreed to remove this anti-feature.
>
> Bye,
> bearophile

Hm. It took me a few minutes to find the bug in my program. I 
don't know yet what to think of it. If I wanted "!." I would 
possibly type this. Is there any real world scenario where this 
behavior could be useful?


More information about the Digitalmars-d mailing list