[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-apl] Access to preferences
From: |
Juergen Sauermann |
Subject: |
Re: [Bug-apl] Access to preferences |
Date: |
Wed, 16 Jul 2014 16:29:55 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5 |
Hi Blake,
I think it would not be good to have everything in one file.
The reason is that this makes updates of the preferences file more
difficult. For example I could not change the file format if I needed to
and updates of a file that contains a lot of other information would
become awkward for the user.
I suggest that such information is put in a separate, per library, file
in the
same directory as the preferences file. If the lib is shipped with GNU
APL then
I can make sure that it will be installed with the lib
The tools for parsing such a file are already in place: sscanf() and
fgets() in FILE_IO.
/// Jürgen
On 07/14/2014 01:26 PM, Blake McBride wrote:
Greetings,
The preferences file contains name/value pairs. It would be nice to
be able to specify arbitrary name/value pairs that can be accessed
from within APL somehow. For example, let's say you store your
component files an a standard place, or you use a certain default SQL
database. It would be nice to be able to specify those default/global
values in the preferences file.
Thanks.
Blake