slang-users mailing list

[2007 Date Index] [2007 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [slang-users] const char* argument in functions like SLsmg_write_nstring


Remko van der Vossen <wich@xxxxxxxx> wrote:
>Why are the string arguments of functions like SLsmg_write_nstring not
>of type const char* but of type char*? This makes it quite annoying to

The main reason is that slang dates from a time when not all
compilers supported the const keyword.  Moreover, at that time
autoconf did not exist or if it did, it was not in wide-spread usage.
Hence, the most portable solution was to avoid using const.

I will revisit this issue for slang 3 -- until then you will have to
use a typecast.

--John



[2007 date index] [2007 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]