Page 1 of 1

Literal Strings should be ReadOnly

Posted: Sun Jan 18, 2009 6:27 pm
by PMV

Code: Select all

Define *p = @"Test" 

Debug "Test" 
PokeS(*p, "stop" ,4) 
a.s = "Test" 
Debug a
This shouldn't be possible. Please don't discuss this as a bug, it isn't. But
it would be realy nice if the compiler or debugger would also show a
errormessage.

http://www.purebasic.fr/german/viewtopi ... sc&start=0
freak wrote:Ich werde Fred mal bei Gelegenheit darauf hinweisen. Wenn ihr aber sichergehen wollt das es nicht in Vergessenheit gerät dann schreibt besser noch einen freundlichen Post ins englische Feature Request forum. ;-)
I hope this was friendly enough :mrgreen:

MFG PMV

Posted: Sun Jan 18, 2009 6:58 pm
by Kaeru Gaman
you should alter the title:
this is not a static string but a constant string, additionally it's literal,
so the correct term is literal constant string.

Posted: Mon Jan 19, 2009 12:52 pm
by PMV
I and my english ... :oops:
But there was someone faster :shock:
Great, so i need not to do it :lol:

MFG PMV