From: "Victor Bazarov" Newsgroups: comp.lang.c++,comp.os.msdos.djgpp Subject: Re: GENERAL DATA TYPE (Do you need one ?) Date: Wed, 21 Mar 2001 09:29:22 -0800 Organization: Advanced Telcom Group Inc. Internet Services Lines: 27 Message-ID: <99aodj$56v$1@nnrp.atgi.net> References: <9988r4$k33$1 AT tron DOT sci DOT fi> <9989to$s25$1 AT nnrp DOT atgi DOT net> <998h4d$5o0$1 AT tron DOT sci DOT fi> <998hls$sj5$1 AT nnrp DOT atgi DOT net> <99a8ig$3ms$1 AT tron DOT sci DOT fi> NNTP-Posting-Host: 64-42-102-2.atgi.net X-Trace: nnrp.atgi.net 985195763 5343 64.42.102.2 (21 Mar 2001 17:29:23 GMT) X-Complaints-To: abuse AT atgi DOT net NNTP-Posting-Date: 21 Mar 2001 17:29:23 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Traveler" wrote... > > There is no need. A generic "replacement for everything" object > > will be _unable_ to do anything -- it simply will not be able to > > have _any_ functionality. > Are you sure ??? :) I am sure, and there is no need for grinning. There is no joke. > Besides, we already have a type for > > that. It's called "pointer to void". > > > Yeah, if you want to do those type conversions by hand... > void* p; > p = (int*)new int[500]; There is no need for a cast. Any pointer to int can be converted to void* implicitly. The language provides that. The reverse is not true. To make a void* into int* you need a cast. BTW, how would your Object type do all the conversions? By foot? Victor -- Please remove capital A's from my address when replying by mail