std.string.chomp error

simendsjo simen.endsjo at pandavre.com
Mon Aug 9 18:12:11 PDT 2010


On 10.08.2010 03:08, bearophile wrote:
> Jonathan M Davis:
>> Why, because it should be
>>
>> if(delimiter is null)
>>
>>
>> or just
>>
>> if(!delimiter)
>
> if (delimiter.length == 0)
> Or
> if (!delimiter.length)
>
> Bye,
> bearophile

Isn't that very different things? You cannot use .length if delimiter is 
null.



More information about the Digitalmars-d-learn mailing list