In <[EMAIL PROTECTED]>, Dimitry Andric <[EMAIL PROTECTED]> typed:
> On 2005-07-06 at 21:41:00 Stefan Sperling wrote:
>
> >> >> char *c = "whats:your:name:buddy?";
> >> made type. that should read "that is read only copy" :)
> > Dark corners of C... So it's my own fault, as usual :)
>
> Actually, this dark corner was enlightened not so long ago. String
> constants used to be writable for years, until someone decided that it
> was better not to. :)
I think it used to be implementation-dependent. IIRC, the VMS C
compiler didn't have writable string constants. I know there was
something like that that bit attempts to port Unix programs to VMS.
<mike
--
Mike Meyer <[EMAIL PROTECTED]> http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"