The room only holds a pointer to the function it is supposed to call struct room_data { SPECIAL(*func); }; Functions by default only have on memory address, and therefore only take memory for itself one time. The room has to know which function to call, however, and this pointer points to the function name's address in memory so it knows which function to call. Franco Gasperino Cutting Edge Communications http://www.cet.com/ (509) 444-INET awe@cet.com ---------- > From: Justin <c616077@SHOWME.MISSOURI.EDU> > To: CIRCLE@post.queensu.ca > Subject: Q--specrooms > Date: Friday, December 12, 1997 2:23 PM > > Hi folks. > > I have a question about special room procedures and memory. If you write > a special procedure, and ascribe it to multiple rooms, does circle load it > that many times, or does it only load it once, and use it for all the > rooms? > > TIA > Salvatore > > > +------------------------------------------------------------+ > | Ensure that you have read the CircleMUD Mailing List FAQ: | > | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | > +------------------------------------------------------------+ +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST