On Fri, 3 Jul 1998, Matt McLaughlin wrote: > On Wed, 1 Jul 1998, Quinn ShadowStalker wrote: > > The lamest mud in existence.. practically.. no cursing over gossip > channels etc.. etc.. hahah > > If you think your such a good coder... > > then what does this do.. > > > ____________________ SNIP ____________________ ENJOY QUINN ______________ > > #include "conf.h" > #include "sysdep.h" > > typedef unsigned char your_momma; > #define HAS_A_DILDO 10 > #define GAY_TOO 0 > > void for_you_quinn() > { > your_momma is_a_lamer = GAY_TOO; > > while (is_a_lamer != HAS_A_DILDO) > cout << "You blow anyways!" << endl; > } > > main() > { > for_you_quinn(); > main(); > cout << "Programing the Quinn way rules. Try me.. I compile.\n"; > } > > It appears to me that it is a nasty program :P It seems to throw itself into an infinite loop printing you blow anyways! and the end of line character to go to the next line. gay too is 0, and has a dildo is 10, therefore is_a_lamer = GAY_TOO means is_a_lamer is 0, however while is_a_lamer is not equal to 10 it will keep printing cout to the screen. Although this coder seems to have forgotton that circlemud is coded in C and not C++, and without iostream.h cout will be undefined. And if there was some remote way that the infinite loop was stopped, it would keep calling main, which would overflow the stack and result in a stack out of memory error. But chances are main() and the Programming the quinn way rules, will never be reached as for_you_quinn is the infinite loop :P Anyway what is the relevance of this post to circlemud? I don't see this function being very compatible with circle. Commentary by: Dr. Cervo Anyway now that the lamer entertainment is over ObCircle: Would anyone know how to go about implementing a swapfile for circlemud, without swapping the whole thing to disk. I've been messing with swapfiles, and it seems to me that it is an all to disk, or none to disk kind of swap deal. I was just wondering if there exists an easy way to swap portions of the mud not in use for a while to disk, short of writing my own version of the linux kernel to run with the mud and handle all the memory allocations :P +------------------------------------------------------------+ | 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/15/00 PST