const debacle

Janice Caron caron800 at googlemail.com
Mon Mar 24 08:58:26 PDT 2008


On 24/03/2008, Janice Caron <caron800 at googlemail.com> wrote:
>  I'd call that a bug in your C compiler, because if that compiles, so
>  will the following:

Ah rats! Ignore the typo. I meant:

    void f(char const * s)
    {
        char * t = substring(0, s);
        t[0] = 'x';
    }



More information about the Digitalmars-d mailing list