It would be very fine, if you could make some numeric compiler constants available as string constants, too!
It's annoying to convert numbers to strings with Str().
But the main reason for this request is that this issue makes it imnpossible to create new constants when you have to convert numbers!
My idea would be, that you dublicate #PB_Compilrer_Line for example. The numeric version is still #PB_Compilrer_Line, the new string version would have a trailing '$':
Code: Select all
Debug #PB_Compiler_Line+1 ; 1+1=2
Debug "Error in line "+#PB_Compiler_Line$ ; no conversion neccessary
One numeric/float constant (without '$') and its string version (with trailing '$'). Currently, I only remember #PB_Compiler_Version, but you may add other constants that could fit this request.
This request already exists with the new-line-constants:
#CRLF is 9 (nine) and #CRLF$ is the real new-line-character.
// Edit:
You might also add #PB_Editor_*Count (by the way, these constants are not being auto-completed!).