>
> In C, literal strings are implied to be 'const' because they are
> stored in memory marked read-only. Most compilers don't give an error
> because requiring the 'const' would break millions of lines of old
> Unix code.
>
> Nevertheless, the "const" should be there. Please file and STR at
>
> http://www.fltk.org/str.php
>

Well, since there are no literal strings in the posted code,
I don't think that's the issue.

I seem to recall a C library issue (the details of which I forget)
having to do with whether functions like strrchr return a char*
or a const char*.  Seems like the return value should be const,
but I think some C library implementations return non-const.


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to