Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!celia!larry From: larry@celia.UUCP (Larry Weinberg) Newsgroups: comp.sys.mac.programmer Subject: ThinkC TCL's DoCommand() wish Keywords: think C TCL CBureaucrat DoCommand Object Message-ID: <1042@celia.UUCP> Date: 5 Jun 91 04:40:17 GMT Distribution: usa Organization: Rhythm & Hues, Inc., Hollywood Lines: 34 I have been using Think C's class libraries for some time now and I keep running into the situation where I wish I could send some parameters, or a pointer, along with the command code to the DoCommand() method of CBureacrat class objects. Why insn't it implemented as: CBureaucrat::DoCommand(long theCommand, long data) (data could be a pointer to any type of structure that might be needed) Am I alone with this wish? Since I don't have this feature, and I don't want to modify the TCL sources because I want to remain compatible, I create special methods for subclasses that I call directly, hence I must cast explicitly to a given subclass therefore loosing some of that beautiful object oriented generality of not having to know what type of object I am passing a message on to. Am I missing something obvious? Is there some truer message passing scheme implemented in the Class Library's chain of command? Or should I take the plunge and modify the CBureaucrat class and have problems with future versions? Larry -- Larry Weinberg Rhythm & Hues, Inc. INTERNET: celia!larry@usc.edu celia!larry@tis.llnl.gov UUCP: ...{ames,hplabs}!lll-tis!celia!larry We can't all, and some of us don't. That's all there is to it. -- Eeyore