[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-apl] quad-FX
From: |
David B. Lamkins |
Subject: |
Re: [Bug-apl] quad-FX |
Date: |
Sat, 17 May 2014 11:48:40 -0700 |
BTW, I actually have a use for redefining a pendent function.
The package manager may unload itself by ⎕ex-ing all of its names. It
does this, of course, while the main package manager function is
pendent.
If that's all I did, then the main function would be missing when I
called the ]pkg user command. Rather than complicating that main
function to figure out what else may or may not be loaded, I define a
new version of the function that simply prints a message.
Here's a transcript:
)load pkg
loading )DUMP file /home/dlamkins/workspaces/pkg.apl...
User-defined command ]pkg installed.
]pkg
Commands: help [command]
ident
packages
depends package-name
metadata package-name
load package-name
unload package-name
new package-name
rescan
names prefix
]pkg unload apl-packager
The package manager is now unloaded.
]pkg
The package manager is unloaded.
`)load pkg` reloads the package manager.