[fpc-devel]adhoc string bugs in 1.0.6 pre2 (not sure though)

beatlesnap at go.to beatlesnap at go.to
Wed Apr 17 15:32:42 CEST 2002


But Did you use -Sh or -Sd on the
commandline to turn on ansistrings? 

>The commandline that I used was:

fpc pru.pas

(pru.pas was my test file)

Else you are using standard pascal strings that can be
only 255 chars long. 

>So you mean that if -Sh or -Sr are activated I'm using ansistrings but
if they aren't activated (which is my case) I'm using standard pascal string 
which can't be longer than 255 chars. 

If I've interpreted ok your words,... this example below:

program myprogram;
var
mystring : string[300];
begin
write('Hello world');
end.
should provoque/generate an error but doesn't. (I really don't remember if I've 
tested it or not but I think so.) Is this perhaps a bug?

Another example of the same thing is my test2.pas.

Hoping that we are nearer to a bug,

adrian15.

---------------------------------------------
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/






More information about the fpc-devel mailing list