Checking if a string is null

Regan Heath regan at netmail.co.nz
Wed Jul 25 03:58:12 PDT 2007


Manfred Nowak wrote:
> Regan Heath wrote
> 
>> This all boils down to the empty vs null string debate where some
>> people want to be able to distinguish between them and some see no
>> point. 
> 
> I haven't seen such a debate.

There have been several, I did a brief search and came up with:

http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=55270
(this one was my fault)

http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=25804
http://www.digitalmars.com/d/archives/digitalmars/D/learn/3521.html
http://www.digitalmars.com/d/archives/21782.html
http://www.digitalmars.com/d/archives/digitalmars/D/27123.html
http://www.digitalmars.com/d/archives/16905.html
http://www.digitalmars.com/d/archives/digitalmars/D/bugs/Issue_1314_New_Dupping_an_empty_array_creates_a_null_array_11585.html
http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=D&artnum=17083

Some of those go back a long, long way.

> Does it mean that it is not possible to implement a Kleene Algebra for 
> strings in D because there is no neutral element for the alternative 
> operator?

I have no idea. :)

Regan


More information about the Digitalmars-d-learn mailing list