From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] help, i'm in a wet paper bag and I can't get out From: rog@vitanuova.com MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20010612132748.06B37199FD@mail.cse.psu.edu> Date: Tue, 12 Jun 2001 14:36:17 +0100 Topicbox-Message-UUID: b5e8bb92-eac9-11e9-9e20-41e7f4b1d025 > One of the problems the monolithic perl script had was that to add > functionality they had to kill the bot, change the script and then log in > again. to bang on (so to speak) about my personal favourite hammer, this is something that limbo is well suited for, as it provides dynamic loading & unloading of modules trivially. if ((mod := lookupmod(name)) == nil) { mod = load IRCbot "/dis/ircbots/" + name; if (mod == nil) { sys->fprint(stderr, "cannot find module %s: %r\n", name); return; } stashmod(name, mod); } mod->functionality();