Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compiling error (bug in apply.c)
- To:
- Subject: Re: compiling error (bug in apply.c)
- From: Kjetil Torgrim Homme <kjetilho>
- Date: Mon, 11 Jul 1994 14:40:20 +0200
- CC: crossfire (at) ifi.uio.no
- In-reply-to: Mark Wedel's message of Fri, 8 Jul 1994 20:13:09 -0700 <>
+--- Mark Wedel:
| It is a bug in the code. treasure is also a structure name.
|
| Apparantly, gcc gives precendence the the object *treasure, where
| as your compiler gives precedence to the structure.
Actually, this is one of the difference between C and C++. In C, the
two name spaces are separate, so the code isn't actually buggy. Not
that it matters much anyway -- you'll probably want to write portable
code (which also entails no more "char *new").
Kjetil T.