From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7272aa7508a3d83f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 26 Oct 2005 21:30:08 -0500 From: "Steve" Newsgroups: comp.lang.ada References: Subject: Re: pointer questions Date: Wed, 26 Oct 2005 19:30:14 -0700 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response Message-ID: NNTP-Posting-Host: 24.20.111.245 X-Trace: sv3-KLwJcFlOXhtqj7lbdJZC7vsXg49S6LLQguqQgDhCRS9KgaFN+xD8vlaRlpqTxFu8qe+RCwuq0k69iUu!GgWdMTsWw3YKQkYGZV0r12A8oCwXO+PqP/SY/FKDc2sWThGSLtv3jTTbrGHlLmRYieaSvZlHANeF X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:5974 Date: 2005-10-26T19:30:14-07:00 List-Id: "Szymon Guz" wrote in message news:djp1tm$186k$1@node3.news.atman.pl... > Hi, > I've got some maybe stupid questions but I don't understand some things: > > 1. Is there a pointer like (void *) from C that points to anything ? > > 2. Is there a universal (like above) pointer for procedure|function that > can point to any kind of procedure|funcion ? > > regards > Szymon Guz There are ways of doing both. If you're programming in Ada you rarely (if ever) need to use them. The only cases I have used them is in interfacing with other languages. Your question is indicative of a C way of thinking. Tell us a little more about what you're trying to do, and perhaps we can suggest an approach using an Ada way of thinking. Steve (The Duck)