On Mon, 25 Jul 2005 20:20:52 +0200
Florian Köberle <[EMAIL PROTECTED]> wrote:

> Vincent Snijders schrieb:
> 
> > Florian Köberle wrote:
> >
> >> This table shows you the differnt Units and may help us to find out:
> >>
> >> How far we can reduce the initialization and finalization part.
> >>
> >> table explanation:
> >>
> >> All filled "class" or "class of" variables , can be removed for the 
> >> initialization part if we replace
> >> var
> >>    Variable:TypeOfVariable
> >>
> >>
> >> with:
> >> var
> >>   Variable:TypeofVariable=Value;
> >>
> >>
> >
> > You are welcome to provide such a patch to remove initilization of a 
> > variable from the initialization section to the declaration. This used 
> > to be necessary, because fpc 1.0.x did not support initialized 
> > variables, but now lazarus requires 2.0.0 or higher, there is no 
> > problem to use initialized variables.
> >
> > Vincent.
> >
> Here my first patch!
> 
> 
> This code doesn't make sense for me:
> 
> unit Forms:
> finalization
>   HintWindowClass:=THintWindow;
> 
> unit Graphics:
> finalization
>   OnLoadGraphicFromClipboardFormat:=nil;
>   OnSaveGraphicToClipboardFormat:=nil;

These are now better. 

 
> unit InterfaceBase:
> finalization
>   InputDialogFunction:=nil;

The InputDialogFunction can be used in case of errors during finalization,
so it should be properly set to nil.
It only uses string and boolean, so this is only little overhead.


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to