Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys



On May 17,  8:27am, thorpej%shagadelic.org@localhost (Jason Thorpe) wrote:
-- Subject: Re: CVS commit: src/sys

| On May 17, 2005, at 8:03 AM, Christos Zoulas wrote:
| 
| > On May 17, 10:30am, perry%piermont.com@localhost ("Perry E. Metzger") wrote:
| > -- Subject: Re: CVS commit: src/sys
| >
| > | > Not if it is not const.
| > |
| > | gcc4 no longer has writable strings...
| >
| > I think that will make it difficult to write programs then.
| 
| char foo[] = "some string";  /* still works */

Yes, my reply was tongue in cheek. The above form just produces an unshared
copy of the const string...

christos



Home | Main Index | Thread Index | Old Index