Re: C++ CircleMUD

From: George (greerga@CIRCLEMUD.ORG)
Date: 11/26/97


On Wed, 26 Nov 1997, Akuma/Chris Baggett/DOOMer wrote:

>this took awhile, considering i did it by hand.
>(i didn't use the patch ON PURPOSE).

It is mostly a no-brainer patch anyway.  Find a conflict, rename the
variable.

>anyway, i finally found George's Log class,
>and i was wondering if it was truly finished or not?

I decided I liked printf style things better so I never finished it.

>and not only that, how does he propose to use it?
>like,
>Log << "1st message" << "2nd message" << 3 << "rd message";
>Log.flush();

Log << "1st part " << "second part" << Log;
(sending the log class to itself causes a flush, kind of a hack...)

>am i required to do a flush everytime? or could i possibly
>just 1) find a way for the flush() to be automatic? or 2) put
>somewhere in the game_loop()  Log.flush(); ??

Yup, because you can send integers and other things in there too and it
won't know when you're done sending the string otherwise.

>The reason i converted to C++, was b/c i FINALLY understand the C++ classes.
>(Not completely mind you, just enough to get me to another C++
>Classes webpage :-P )

A string/socket class would be nice to get if you are C++ now.

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | 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