www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/10/16:38:09

Date: Fri, 11 Oct 1996 09:23:14 +0000
From: Bill Currie <billc AT blackmagic DOT tait DOT co DOT nz>
Subject: Re: A pointer of variable type - is it possible?
To: djgpp AT delorie DOT com
Message-id: <325E1202.2DEE@blackmagic.tait.co.nz>
Organization: Tait Electronics NZ
MIME-version: 1.0
References: <325379bb DOT 732349 AT news DOT direct DOT ca> <325D19F8 DOT 3EB97231 AT alcyone DOT com>

Erik Max Francis wrote:
> 
> Wesley Terpstra wrote:
> 
> > I have heard about something
> > called polymorphic classes.  Would this be able to give me the power I
> > need?  I also noticed an operator called typeof() could this be used
> > to make my local information portable, yet fast?  If you know a way
> > that I could do this, please tell me! :)
> 
> Yes.  It's called inheritance.
> 

Don't forget about virtual functions, they make that sort of thing very easy.

- Raw text -


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