www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/12/14/14:34:49

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: "Emile Bosch" <emilebosch AT hotmail DOT com>
Newsgroups: comp.lang.c++,comp.os.msdos.djgpp
References: <vTkS7.469287$Jy2 DOT 33400140 AT news DOT quicknet DOT nl> <Xns9177526CC2A82ASINANUNUR AT 132 DOT 236 DOT 56 DOT 8> <wTmS7.3829$tg4 DOT 48021 AT vixen DOT cso DOT uiuc DOT edu> <Xns917766F857AB6ASINANUNUR AT 132 DOT 236 DOT 56 DOT 8> <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: <VjsS7.470138$Jy2.33562165@news.quicknet.nl>
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" <jon_bills AT hotmail DOT com> wrote in message
news:1bef4d26792738cec5dfc612b91aa902 DOT 37623 AT mygate DOT mailgate DOT org...
> "A. Sinan Unur" <asu1 AT cornell DOT edu> wrote in message
> news:Xns917766F857AB6ASINANUNUR AT 132 DOT 236 DOT 56 DOT 8...
>
> > "Mike Pilat" <pilat AT uiuc DOT edu> wrote in
> > news:wTmS7.3829$tg4 DOT 48021 AT vixen DOT cso DOT uiuc DOT edu:
> >
> > > "A. Sinan Unur" <asu1 AT cornell DOT edu> wrote
> > >> "Emile Bosch" <emilebosch AT hotmail DOT com> 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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019