TDPL reaches Thermopylae level

Michel Fortin michel.fortin at michelf.com
Tue Oct 27 06:56:13 PDT 2009


On 2009-10-27 09:07:06 -0400, Andrei Alexandrescu 
<SeeWebsiteForEmail at erdani.org> said:

> My current thought is to ascribe lhs ~ rhs the same type as lhs 
> (thereby making ~ consistent with ~= by making lhs ~= rhs same as lhs = 
> lhs ~ rhs) in case lhs is a string type. If lhs is a character type, 
> the result type is obviously the same as rhs.

Seems the most intuitive option to me. Also, it makes "a ~= b" 
equivalent to "a = a ~ b" which is always nice.

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/




More information about the Digitalmars-d mailing list