Tonight: Introduction to D at Codeaholics (HK)
Walter Bright via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Mon Nov 16 10:22:21 PST 2015
On 11/11/2015 9:37 AM, Adam D. Ruppe wrote:
> On Wednesday, 11 November 2015 at 17:30:07 UTC, Lionello Lunesu wrote:
>> as being a semantic difference, with no difference in memory layout. One can
>> be indexed meaningfully, the other can't.)
>
> Eh, indexing char[] is meaningful, you just need to know what that meaning is...
In C/C++, it is common to use 'char' when one is actually looking for a small
integral type. 'char' in D is meant to be a UTF-8 code unit, and has semantics
distinct from that of a small integral type.
More information about the Digitalmars-d-announce
mailing list