until strange behavior

Ali Çehreli acehreli at yahoo.com
Sun Jun 2 08:46:09 PDT 2013


On 06/02/2013 06:43 AM, Jack Applegame wrote:

 > On Sunday, 2 June 2013 at 13:30:16 UTC, bearophile wrote:
 >
 >> I agree it's often a pain in the ass, but technically it's not a bug,
 >> it's working as designed.
 >
 > Root is isNarrowString template.
 >
 > Do you believe that "isNarrowString!(char[]) == true" technically is not
 > a bug?

char and wchar arrays are narrow strings. Regardless, their element type 
is dchar. This causes confusion but makes sense because they are 
conceptually ranges of Unicode characters.

There were long and heated discussions when this behavior was first 
proposed.

Ali



More information about the Digitalmars-d-learn mailing list