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:gan...@narod.ru -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus