[fpc-pascal] 2.1.1 new protected

Graeme Geldenhuys graemeg.lists at gmail.com
Fri Aug 11 16:30:25 CEST 2006


On 8/11/06, Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:
> Thanks for the good example. With the protected method you can easily do dangerous things, like adding an action twice or forgetting to remove it. With the 'protected' AddAction you could do such things only with dirty tricks like the above. The normal way is:
>
> aOK.ActionList:=FActionList;
>
> This is not only shorter, but also safe.

Ah... Never saw the TAction.ActionList property.  Thanks for the tip!
Will be updating my code shortly and get rid of that hack.  :-)

Regards,
  Graeme.


-- 
There's no place like 127.0.0.1



More information about the fpc-pascal mailing list