On Mon, 8 Dec 1997, Akuma/Chris Baggett/DOOMer wrote: >Ok, quick question, if i were to use [cm]alloc to CREATE() >a char_data structure in C++, would it STILL do the constructor >function char_data() even though i'm not using NEW ? I would say no, because you're just making a 'char_data' sized space in memory, not the actual object. I've never tried to malloc a class though, it was always new. >I'm sure George knows what i'm talking about :-) Use 'new' and 'delete', you can change your CREATE macro to use them. -- 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