Re: New Working Group Note: Requirements for String Identity Matching and String Indexing

* John Cowan wrote:
>Bjoern Hoehrmann scripsit:
>
>> Two things are identical if you cannot tell them apart. Two things are
>> merely equivalent in some context if the differences between them are
>> of no concern in that context.
>
>This distinction is not effective in programming.

It is one of the main characteristics of "programming" that you, as the
programmer, get to decide what distinctions you want to make. I do not
see how this is relevant here. In your example:

>	char *x = "abc";
>	char *y = strdup(x)

You have different "objects"; those objects are not strings, they are on
a higher level. Having different objects but identical strings is not a
contradiction.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

Received on Wednesday, 7 October 2009 04:08:37 UTC