[fpc-pascal]Re: force ansistrings to be copied on duplication
Marc Santhoff
M.Santhoff at t-online.de
Thu Jul 29 06:42:44 CEST 2004
Hi again,
Am Do, den 29.07.2004 schrieb Marc Santhoff um 06:33:
> --- like this ---
> var
> s1:PChar='something';
this should be
s1:AnsiString='something';
of course ...
> s2:PChar;
>
> begin
> s2 := s1;
> if (s1 <> s2) then
> writeln('Okay')
> else
> writeln(':-( only a doubled pointer');
>
> end;
>
> ---
Sorry,
Marc
More information about the fpc-pascal
mailing list