[fpc-pascal]Strange Segfault...
    Matt Emson 
    memsom at interalpha.co.uk
       
    Thu Jul 10 18:25:21 CEST 2003
    
    
  
> > procedure replace(search: String; replace: String; var s: String);
> > procedure replace(const chars: array of char; replace: String; var s:
String);
>
> A string, or a array of char?
James, this (as Marco put it) was exactly what I had in mind. The compiler
will have to make a decision, and as a string is implicitly and array of
sorts, you most likely get this error.
If you had tried my advice,  you would have realised this was the case quite
quickly. I was going for the school of hard knocks version of the answer,
rather than handing it to you on a plate :P
Matt
    
    
More information about the fpc-pascal
mailing list