X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "Emile Bosch" Newsgroups: comp.lang.c++,comp.os.msdos.djgpp References: <1bef4d26792738cec5dfc612b91aa902 DOT 37623 AT mygate DOT mailgate DOT org> Subject: Re: ** Pointer thingie's <= what's up with the double *? Lines: 42 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Fri, 14 Dec 2001 20:25:36 +0100 NNTP-Posting-Host: 213.73.195.146 X-Complaints-To: abuse AT quicknet DOT nl X-Trace: news.quicknet.nl 1008357749 213.73.195.146 (Fri, 14 Dec 2001 20:22:29 MET) NNTP-Posting-Date: Fri, 14 Dec 2001 20:22:29 MET Organization: QuickNet To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com thx dude =) "Jon Bills" wrote in message news:1bef4d26792738cec5dfc612b91aa902 DOT 37623 AT mygate DOT mailgate DOT org... > "A. Sinan Unur" wrote in message > news:Xns917766F857AB6ASINANUNUR AT 132 DOT 236 DOT 56 DOT 8... > > > "Mike Pilat" wrote in > > news:wTmS7.3829$tg4 DOT 48021 AT vixen DOT cso DOT uiuc DOT edu: > > > > > "A. Sinan Unur" wrote > > >> "Emile Bosch" wrote > > >> > void** ptr; //? Double **? > > >> > > >> i don't think that is valid. > > >> AFAIK, you can't have pointers to void pointers. > > > > > > You can indeed have void**... for example, the COM IUnknown method > > > QueryInterface(..) takes a void** as a parameter into which your > > > interface pointer goes. > > > > See http://www.eskimo.com/~scs/C-faq/q4.9.html > > That's the C FAQ. The rules for pointer-to-void are different for C++. > > If the OP hadn't cross-posted, we wouldn't have this confusion. From > a C++ perspective, there is nothing wrong with void** type. You can't > do much with it until it's cast to a particular type. It's a pretty > bad idea to use void** in C++ as it completely bypasses the type safety > system. > > Note that assigning a pointer-to-void to pointer-to-type in C++ requires > a cast. > > Jon. > > > -- > Posted from [195.99.244.69] > via Mailgate.ORG Server - http://www.Mailgate.ORG