>>>>>> thus on Tue, 25 Aug 1998 14:27:35 -0700, Tony wrote: > struct mplayerset { > char *keyword; > (???) modify; > They are typically going to be integers for on/off things but not always. > Is this possible, or will I end up using a switch like perform_set does? Would a union be out of the question? struct mplayerset { char *keyword; int type; /* for modify */ union modify_type modify; }; union modify_type { int toggle; ... }; d. +------------------------------------------------------------+ | 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/15/00 PST