From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_40,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,ef0074ec236ba6e3 X-Google-Attributes: gid109fba,public X-Google-Thread: 1108a1,ef0074ec236ba6e3 X-Google-Attributes: gid1108a1,public X-Google-Thread: 108717,ef0074ec236ba6e3 X-Google-Attributes: gid108717,public X-Google-Thread: 103376,b19fa62fdce575f9 X-Google-Attributes: gid103376,public X-Google-Thread: 1014db,ef0074ec236ba6e3 X-Google-Attributes: gid1014db,public X-Google-ArrivalTime: 1994-12-03 01:07:16 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!usc!nic-nac.CSU.net!floyd!nermal!csabanat From: csabanat@nermal.santarosa.edu (Chamundi Sabanathan) Newsgroups: comp.lang.ada,comp.lang.c,comp.programming,comp.lang.c++,comp.object Subject: Re: Question about class destructors...Easy??? Followup-To: comp.lang.ada,comp.lang.c,comp.programming,comp.lang.c++,comp.object Date: 30 Nov 1994 16:53:58 GMT Organization: Santa Rosa Junior College, Santa Rosa, CA Distribution: world Message-ID: <3bian6$26o@floyd.santarosa.edu> References: <3b9s8d$m58@cleese.apana.org.au> <3bfig8$tn@news.cc.utah.edu> <3bfjul$kfh@lab2.cs.purdue.edu> NNTP-Posting-Host: nermal.santarosa.edu X-Newsreader: TIN [version 1.2 PL2] Xref: bga.com comp.lang.ada:8222 comp.lang.c:33160 comp.programming:5584 comp.lang.c++:39384 comp.object:9363 Date: 1994-11-30T16:53:58+00:00 List-Id: Roy J. Davis (davisrj@cs.purdue.edu) wrote: : Hi, : I have a question regarding class destructors in c++. Can a : destructor receive any arguments?? And if one can, how would : it be done and in what instance would it be used? : Thanks to any and all who reply. : Roy D. Interesting question. Perhaps if the destructor is to act on an element in a linked list or other repetitive structure, one might wish to tell it to (or not to) act likewise on any other elements in the structure which share a particular characteristic... or on the next/previous n elements, or on every nth element... As my c++ is minimal (and rusty to boot), I'm not sure just how this would be implemented; I await further postings with interest. Chamundi Sabanathan Santa Rosa Junior College csabanat@nermal.santarosa.edu