On Thu, Oct 13, 2011 at 10:17 AM, Marco van de Voort <mar...@stack.nl> wrote:
> How do you override classes that are declared in RTLString which might not
> be equal to utf8string?

I dont fully understand your question, but lets suppose this RTL file:

unit system;
{$mode string = banana}
type RTLString = string;

unit classes;
{$mode string = banana}
type
  TWhaeverClass = class
  procedure Do(Param: string); virtual;
  end;

unit mylazarusunit;
{$mode string = utf8string}
type
  TWhaeverClassOverride = class(TWhaeverClass)
  procedure Do(Param: RTLString); override;
  end;

I think that this would work,  because the signatures of the
procedures match perfectly.

-- 
Felipe Monteiro de Carvalho
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to