July 10, 2002
You're correct about the reasoning. -Walter

"Pavel Minayev" <evilone@omen.ru> wrote in message
news:CFN374344654990394@news.digitalmars.com...
On Thu, 27 Jun 2002 11:20:58 +1000 "Matthew Wilson"
<matthew@thedjournal.com>
wrote:
> Do you know what the reasoning behind the prohibition of char literals
was?

The reason was to simplify the language (no need to remember where to use single quotes and where double ones are required), and to free single quotes for another purpose, I think. Just to remind, in D single-quoted string literals don't support escape characters, so they are good for writing pathnames:

was "C:\\bla\\bla\\bla"
now   'C:\bla\bla\bla'


1 2
Next ›   Last »