Newsgroups: comp.sys.mac.programmer Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!linus!linus!mitre.org!gmarzot From: gmarzot@mitre.org (G. S. Marzot (Joe)) Subject: Re: ThinkC TCL's DoCommand() wish Message-ID: <1991Jun5.162514.29682@linus.mitre.org> Sender: news@linus.mitre.org (News Service) Nntp-Posting-Host: gmarzot.mitre.org Organization: The MITRE Corporation References: <1042@celia.UUCP> Distribution: usa Date: Wed, 5 Jun 1991 16:25:14 GMT In article <1042@celia.UUCP> larry@celia.UUCP (Larry Weinberg) writes: > 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? You definitely are not. I agree whole heartedly in favor of a more flexible interface to DoCommand and your example looks perfect. I also have a feeling now is the time to make ourselves heard just in case any new editions of the TCL are forthcoming. In the event that the right person at Symantec does not get this post I think I will pass it along myself. -gsm Email: gmarzot@linus.mitre.org (standard disclaimer)