- Subject: Re: [slang-users] const char* argument in functions like SLsmg_write_nstring
- From: "John E. Davis" <davis@xxxxxxxxxxxxx>
- Date: Wed, 23 May 2007 12:43:47 -0400
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]