Post Reply 
newRPL - build 1255 released! [updated to 1299]
03-04-2018, 10:09 PM (This post was last modified: 03-05-2018 05:48 AM by The Shadow.)
Post: #160
RE: newRPL - build 1001 released! [update:build 1046]
Thanks, that was very informative.

(03-04-2018 09:31 PM)Claudio L. Wrote:  
(03-04-2018 06:19 PM)The Shadow Wrote:  If not, how does one initialize library settings?

I'm still debating between 2 methods:
a) Library commands must detect if the data exists (by using IFERR with LIBRCL) and either recreate with LIBSTO or at least provide a default value.
b) Use a $HANDLER program that will be called on installation, removal and have it recreate the variables.

I can think of refinements for both of these, though I'm not sure how practical they are to code:

a) Have LIBRCL take two arguments instead of one. The second one is a default value - if the recall fails, the default gets both returned and LIBSTO'd.

b) Instead of, or in addition to, $HANDLER, there is $DEFAULTS. This is a simple list of names and content, which are to be stored into the directory when the library is attached. There might also be a command LIBDEF which would restore the directory to the default values in case things get borked up.

I personally think that either version of b) is more elegant, provided there's a way to re-run the $HANDLER or restore the $DEFAULTS. Otherwise, programmers will effectively have to implement a) anyway.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: newRPL - build 1001 released! - pier4r - 12-16-2017, 08:03 AM
newRPL - on Hp 39gs - Martin Hepperle - 06-05-2019, 06:51 AM
RE: newRPL - build 1001 released! - pier4r - 12-23-2017, 10:16 AM
RE: newRPL - build 1001 released! - pier4r - 01-01-2018, 09:42 AM
t - Claudio L. - 01-01-2018, 03:06 PM
RE: newRPL - build 1001 released! - pier4r - 01-01-2018, 03:41 PM
RE: newRPL - build 1001 released! - pier4r - 01-02-2018, 04:54 PM
RE: newRPL - build 1001 released! - pier4r - 01-02-2018, 06:58 PM
RE: newRPL - build 1001 released! [update:build 1046] - The Shadow - 03-04-2018 10:09 PM
newRPL - brickviking - 10-05-2018, 06:01 AM
How to participate? - erazor - 12-13-2019, 07:12 AM



User(s) browsing this thread: 6 Guest(s)