Hi, Nerijus!
On Tue, 2005-04-12 at 04:36 +0300, Nerijus Baliunas wrote:
> On Mon, 11 Apr 2005 20:20:38 -0400 Pavel Roskin <[EMAIL PROTECTED]> wrote:
>
> > On Wed, 2005-04-06 at 22:12 +0200, Vaidrius Petrauskas wrote:
> > >
> > > please commit updated lt translation.
> >
> > Applied. Thank you!
On Tuesday, April 12, 2005 at 20:16, Roland Illig wrote:
> >> char *str_unconst(const char *);
[..]
> >In what way is this function (or macro) useful? It seems to break the
> >whole point with 'const' in C. If something is const, you shouldn't
> >touch it. Or should you?
>
> We are using SLang a
Oskar Liljeblad wrote:
On Tuesday, April 12, 2005 at 12:27, Roland Illig wrote:
I'd like to introduce a new function:
char *str_unconst(const char *);
The function returns a string that compares equal to its argument, but
does not have the "const" qualifier. Currently it just returns its
argum
Pavel Tsekov wrote:
For those of you that are concerned about the performance loss of an
extra function call: It is much more important for the code to be
readable and checkable by the compiler than to be 1 millisecond faster
at all.
You can inline it.
When compiling with gcc using -Wcast-qual, thi
On Tuesday, April 12, 2005 at 12:27, Roland Illig wrote:
Hi!
> I'd like to introduce a new function:
>
> char *str_unconst(const char *);
>
> The function returns a string that compares equal to its argument, but
> does not have the "const" qualifier. Currently it just returns its
> argum
Hello,
On Tue, 12 Apr 2005, Roland Illig wrote:
> I like this version much more than the const_cast macro I introduced
> some months ago. Compare these:
I mean no offense, but please save us all the "I like this", "I
like that". It's obvious that you check in what you like.
> For those of you
Hi all,
I'd like to introduce a new function:
char *str_unconst(const char *);
The function returns a string that compares equal to its argument, but
does not have the "const" qualifier. Currently it just returns its
argument, cast to (char *).
I like this version much more than the const_ca