Is this statement in http://dlang.org/dmd-windows.html still true?
Pierre Rouleau
prouleau001 at gmail.com
Mon Jul 2 06:23:36 PDT 2012
On 12-07-02 4:58 AM, Ali Çehreli wrote:
> On 07/01/2012 06:42 PM, Pierre Rouleau wrote:
>
> > Would the following rewrite of the above statement maintain the original
> > intent while conveying a little bit more information?
> >
> > "It is never a good idea to write into a string literal.
>
> "never a good idea" would be too permissive and welcoming. The
> documentation should simply say that writing into a string literal is
> undefined behavior (exactly like in other popular system languages like
> C and C++).
>
> The current documentation gets into unnecessary detail of what may
> happen and why under different environments. Well, yes. :) It is
> undefined behavior.
>
> Ali
>
Thanks Ali, I completely agree.
-
Pierre Rouleau
More information about the Digitalmars-d
mailing list