On 16 Nov 11, at 21:53, Bart wrote:
> On 11/16/11, Jonas Maebe <jonas.ma...@elis.ugent.be> wrote:
> 
> > Again: length(pchar) is perfectly correct and will be translated into
> > strlen(pchar), just like in Delphi (and probably even like in TP).
> 
> Couldn't resist;
> 
> Turbo Pascal 6.0:
> 
> Program Prog;
> 
> uses objects;
> 
> var
>   pc: PChar;
>   Len: Integer;
> begin
>   Len := Length(pc|);
> end.
> 
> Error 67: String expression expected.  (| indicates the cursor)

Indeed - TP/BP 7.0 gives the same (error) result. Unit strings (which 
might be more appropriate than unit objects included by Bart) doesn't 
change the result either.

Tomas

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to