[Lazarus] TAChart Localization

Maxim Ganetsky ganmax at narod.ru
Wed Dec 16 15:16:09 CET 2015



16.12.2015 16:30, Werner Pamler пишет:
> Am 13.12.2015 um 13:26 schrieb Maxim Ganetsky:
>> It does not look nice. You are hacking around const specifier.
> Hacking? At least in good company:
> 
> excerpt from SysUtils:
>     constructor Exception.CreateRes(ResString: PString);
>     begin
>       inherited create;
>       fmessage:=ResString^;
>     end;
> 
> Isn't this the same? If the address of the resource string is fed into
> the CreateRes constructor then the exception will be raised with the
> translated string.

There is no const modifier in this excerpt.

-- 
Best regards,
 Maxim Ganetsky                  mailto:ganmax at narod.ru




More information about the Lazarus mailing list