Path: utzoo!attcan!uunet!husc6!bloom-beacon!mit-eddie!uw-beaver!tektronix!tekig5!tekig4!jimst From: jimst@tekig4.TEK.COM (Jim Stanley) Newsgroups: comp.lang.c++ Subject: Emulate elementsPerform:with: method in C++ Message-ID: <3287@tekig4.TEK.COM> Date: 6 Oct 88 19:11:47 GMT Distribution: na Organization: Tektronix Inc., Beaverton, Or. Lines: 12 I would like to send a message to each element on a list of objects. I'd also like the message to be an argument that I give to the routine that does the sending. This emulates the action of the Objective-C elementsPerform:with: method. So far, I can't see a way to do this using, for instance, pointers to member functions. Does anyone know of a way to do this in C++? Thanks. -- uucp: {ucbvax,decvax,ihnp4,allegra,uw-beaver}!tektronix!tekig4!jimst US Mail: James Stanley, Lab Instruments Engineering, Tektronix, Inc. Box 500 MS 39-140, Beaverton OR 97077 Phone: 503-627-3073, 627-3080