Literal string error message

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BarryG
Addict
Addict
Posts: 3322
Joined: Thu Apr 18, 2019 8:17 am

Literal string error message

Post by BarryG »

(Not a bug in the true sense, but also not a doc issue because the IDE shows the message).

In reference to the error message about long strings in the IDE ("A literal string can't be bigger than 8192 characters"), I suggest this be changed to something more specific and less confusing such as "Hard-coded strings in the IDE cannot be larger than 8192 characters".

Reason for this report is because it can lead some people to mistakenly think strings cannot be over 8 KB in their apps (see thread starting here -> viewtopic.php?p=556467#p556467), which is not true because in reality they're unlimited. This quick and easy change would remove the ambiguity. Thanks.
User avatar
Demivec
Addict
Addict
Posts: 4091
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: Literal string error message

Post by Demivec »

-1

I think 'hard-coded string' is less clear than 'literal string'.
User avatar
Josh
Addict
Addict
Posts: 1183
Joined: Sat Feb 13, 2010 3:45 pm

Re: Literal string error message

Post by Josh »

I think 'literal' is a common word in programming and should be familiar to every programmer.

345 is a literal
3.141592654 is a literal
"I am a literal" is a litral
Wikipedia wrote:In computer science, a literal is a notation for representing a fixed value in source code. Almost all programming languages have notations for atomic values such as integers, floating-point numbers, and strings, ...
sorry for my bad english
BarryG
Addict
Addict
Posts: 3322
Joined: Thu Apr 18, 2019 8:17 am

Re: Literal string error message

Post by BarryG »

I don't mind either way, but as long as it mentions the limit is for the IDE/editor/source code.
Post Reply