PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Strings

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.
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.
tinybulb.com · 07 Feb 2010, 00:47 UTC
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*'".



.
Hi,

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