Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compiling error (bug in apply.c)
+--- 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.