delorie.com/archives/browse.cgi | search |
From: | "Lark" <rlark DOT at DOT mbhs DOT dot DOT edu AT delorie DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Pointers to functions. |
Date: | Sun, 7 Mar 1999 15:27:14 -0800 |
Organization: | MindSpring Enterprises |
Lines: | 17 |
Message-ID: | <7bunlf$f86$1@camel29.mindspring.com> |
References: | <7b9jku$o7o$1 AT news6 DOT svr DOT pol DOT co DOT uk> <36D9BD2F DOT A05C8E55 AT cartsys DOT com><CqyGOCASqC42EwDb AT dunvegan1 DOT demon DOT co DOT uk> <7br6n8$897$1 AT news6 DOT svr DOT pol DOT co DOT uk><7bu8hk$6b6$1 AT camel19 DOT mindspring DOT com> <u79p7SA2Ls42EwHc AT xemu DOT demon DOT co DOT uk> |
NNTP-Posting-Host: | d1.8a.2c.de |
X-Server-Date: | 7 Mar 1999 20:30:39 GMT |
X-Newsreader: | Microsoft Outlook Express 4.72.3110.1 |
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
>>What is the purpose(point, if you will) of having a pointer to a function? > so that a 'C' variable can indicate a 'variable' sort of function > i.e. a different actual function to be used in different contexts. Doesn't function overloading accomplish the same thing? For example - int add(int, int); float add(float, float); char * add(char *, char *); all add different object types. How is this different from what you were saying?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |