It was a way to move the string from the data segment to the text segment.
I never found it useful and making strings const char * broke lots
of programs that wrote directly into strings. No big deal, but a useless pain.
I tire of paying for things I don't use. :(
1011 1100
--- Begin Message ---
On 12/7/05, Charles Forsyth <[EMAIL PROTECTED]> wrote:
> (on unix) cc -S something.c
> ./:rofix something.s
> as -o something.o something.s
>
> where :rofix is a sh/ed/sed script that changes certain .data to .text
So it does the optimization possible with const. Not the "interface"
part, though. If you don't like type decorations, I guess this way's
better.
--Joel
--- End Message ---