[Lazarus] Some thoughts about the global 'Application' instance.

Marco van de Voort marcov at stack.nl
Sun Jun 21 18:18:20 CEST 2009


On Sat, Jun 20, 2009 at 09:17:36AM -0700, Samuel Herzog wrote:
> By the way,
> 
> I was always wondering why there is not TUser object and no TComputer.

There are several reasons to avoid doing this in cross-platform ways. There
might devel an shear infinitely complex matrix of dependancies, and
permission requirements to gather and access the info.
 
> For example:
> 
> ?? TUser.SettingsPath
> ?? TUser.LoginID
> ?? TUser.Surname
> ?? TUser.Firstname
> 
> and so on.
> 
> And
> 
> ? TComputer.CurrentUser
> ? TComputer.Name
> ? TComputer.SettingsPath
> 
> Or does this exist already ?
> 
> I only know TApplication and TScreen so far.

Those are defined by Delphi and thus needed for compatibility.




More information about the Lazarus mailing list