[fpc-pascal] Version 2.1.4
RainerStratmann at t-online.de
Sat Jun 2 20:33:57 CEST 2007
Am Samstag, 2. Juni 2007 19:59 schrieb Peter Vreman:
> At 19:58 2-6-2007, you wrote:
> >var s:string;
> >s:='#'; --> causes an access violation
> >Why is it no more possible to assign the length index s in a string?
> >I find that is too much security to supress that.
> >It is cutting responsibility from the programmers.
> You are using ansistrings instead of shortstrings. Use SetLength()
> first to allocate memory.
Does that mean that
var s:string; is definig an ansistring in delphi mode?
In the previous version this works, is it now changing generally to
How can I assign "normal" pascalstrings?
Is there a description about the behaviour of strings and ansistrings in the
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
More information about the fpc-pascal