Should we deprecate comma?
Asman01
jckj33 at gmail.com
Tue Mar 25 08:44:50 PDT 2014
On Tuesday, 25 March 2014 at 15:14:09 UTC, Marc Schütz wrote:
> On Tuesday, 25 March 2014 at 11:54:25 UTC, Daniel Murphy wrote:
>>
>> I just introduced one in my own code:
>>
>> if (s[0] != '/', s)
>
> What is it supposed to do? Do you want to check that s is at
> least 1 character long? Otherwise it's a NOP, AFAICS.
I think it's supposed to test if first byte at s isn't '/'
character ,s was a typo. I don't think it's a NOP because if I'm
right, s is evaluated to begging of its address and it's always
!= 0. So, if it will always run.
More information about the Digitalmars-d
mailing list