Page 1 of 1

Strings

PostPosted: Mar 23, 2007 @ 9:29pm
by gilad_no
Hi,

Is there a reason DrawFont and other string functions accept "char*" instead of "const char*"?

Since the string won't be changed, it should be a const value.

PostPosted: Mar 27, 2007 @ 1:32pm
by edge
Hi Gilad,

There isn't a particular reason for them to be char * instead of const char *. We will probably change this in future versions.

PostPosted: Feb 7, 2010 @ 1:47am
by tinybulb.com
The problem is still actual. Not only for DrawFont but for CreateSurface methods and all other methods all over the code that uses char*. A very boring thing especially when use iPhone SDK 3.* that always notify about "deprecated conversion from string constant to 'char*'".



.

PostPosted: Feb 10, 2010 @ 9:54am
by edge
Hi,

The fix to this issue is still a work in progress, more const correctness will be added to upcoming EDGELIB versions.