[DGD] Kernel lib question

Brian Gernhardt benji at silverinsanity.com
Tue Jul 10 17:08:53 CEST 2007


On Jul 5, 2007, at 1:40 PM, Rev Dr Ari D Jordon wrote:

> I recently started playing around with DGD and the kernel library,  
> and have a quick question.  Other than added code to /kernel/lib/ 
> auto.c, is there any way to globally add additional functions (ie,  
> something like MudOS/LDMud's simul_efuns)?  Trying to avoid editing  
> anything in the /kernel try if possible, but would really like to  
> add certain functions I've always found rather useful, such as  
> map_array() or filter_array(). Now, if only I could implement  
> closures in LPC... :)

You can either add them as a library to be included into the objects  
that need them or use "#include "AUTO"" in /include/std.h (IIRC) and  
have your object_d specify what this second AUTO object is. (see /doc/ 
kernel/hook/driver)

~~ Brian Gernhardt



More information about the DGD mailing list