Not so sure you can 'barrow' ideas from rom unless your not looking at roms
source, or your adding the fact that your a rom dirivative but don't quote
me on that. Sounds like to me you might need to clean compile. I've had
problems simular to that when I edit the h file compile one file with the
change to the h file but don't compile the other. Thats the only thing I can
think of.

----- Original Message -----
From: "Mark Roberts" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, May 16, 2003 6:21 AM
Subject: Requesting help


> Hi,
>   I'm requesting help.  I am writing a code base that,
> at best, borrows ideas from ROM. So, I'm asking some of the more
> competant members of this list for some help.
>
> I have:
>
> class player
> {
> private:
> string pretitle, name, title;
> class descriptor * desc;
> public:
> ...
> void send(string str)
> {
> desc->add_outbuf(str);
> }
> ...
> };
>
> class descriptor
> {
> private:
> queue <string> inbuf;
> queue <string> outbuf;
> public:
> ...
> void add_outbuf(string str)
> {
> outbuf.push_back(str);
> }
> ....
> };
>
>
> Somehow.. I've got a bug that makes anything
> send() to a player ... starts setting the strings in the
> player (pretitle, name, title) to whatever is sent...
> but only 1 string per send(). Like:
> I have send("You're all set!"); and it sets pretitle to
> You're all set!
> And then I send a room description... and the name becomes
> the room description!! (gcc v3.2.3)
>
> As best as I can tell, this might be a compiler error (I'm running
> debian sid)..
>
> but there's the off chance that I'm doing something screwy.
> So... I'm asking some of you (You know who you are)...
> if you'd be willing to take a look at my code.
> (No, I don't want to take this to the gcc list unless I can
> PROVE that it's a bug with g++! It's significantly busier
> than this is!)
>
> Mark
> Esheliam
>
> --
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.12
> GCS d s: a-- C++>$ UL+ P+ L++ !E(---) W- N o? K? w
> O- M-- V-- PS+ PE-- Y+ !PGP !tv t+ 5? X? R* b+++ DI+ D-
> G++ e++> h---- r+++ y--
> ------END GEEK CODE BLOCK------
>
>
>
> --
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom
>


Reply via email to