[fpc-devel] GetAppConfigFile

Aleš Katona almindor at gmail.com
Sat Oct 4 12:28:17 CEST 2008


Dňa So, 2008-10-04 o 12:23 +0200, Micha Nelissen napísal:
> Hi,
> 
> Why is there a parameter to GetAppConfigFile? I'd suggest something like:
> 
> function GetAppConfigFile: string;
> begin
>    { first look for user specific config file }
>    Result := GetAppConfigFile(false);
>    if FileExists(Result) then
>      exit;
>    { otherwise use global one }
>    Result := GetAppConfigFile(true);
> end;
> 
> This would first look for the user version, then for the global variant.
> 
> (BTW: instead of Boolean, I would have liked a acLocal, acGlobal better, 
> it's clearer to read).
> 
> Any thoughts?

Please don't break this yet again. It's bad enough FPC completely ruined
config dir paths on some OSes between versions as is.

I don't see a particular problem with the boolean var.

Ales
> 
> Micha
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel




More information about the fpc-devel mailing list