[slang-users] const char* argument in functions like
SLsmg_write_nstring
Remko van der Vossen
wich at stack.nl
Wed May 23 16:29:30 EDT 2007
On Wed, May 23, 2007 at 12:43:47PM -0400, John E. Davis wrote:
> Remko van der Vossen <wich at stack.nl> 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
There exist(ed) compilers which do not support the const keyword? I would
say such compiler would be broken by design...
> 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.
The relation to autoconf escapes me, but then again, I know nothing
about auto* anyway...
> I will revisit this issue for slang 3 -- until then you will have to
> use a typecast.
Any ideas on when this would be available?
Regards,
Remko van der Vossen.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mailman.jedsoft.org/pipermail/slang-users-l/attachments/20070523/21bb173f/attachment.bin
More information about the slang-users-l
mailing list