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 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!news4.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 18:58:23 -0500 From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: pointer questions References: X-Newsreader: Tom's custom newsreader Message-ID: Date: Wed, 26 Oct 2005 18:58:23 -0500 NNTP-Posting-Host: 24.6.102.223 X-Trace: sv3-PRn9BADAmlNuzECf+wn/eA67Nm3viTuscbCY3UF+63q6K0lYIunFLX/PyAEB+8+E/IXbdMZ1eC4YoqW!6rxHqPxxRdOLRRIGBP6p3HRVFQkjNfNpjj8lVimxrPuW/vEdEYzemN2AnFDxeOXYm0VpEvJgznba 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:5971 Date: 2005-10-26T18:58:23-05:00 List-Id: > 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 ? No. But in both cases you can do an explicit Unchecked_Conversion to convert a pointer to one thing into a pointer to something else. You are then explicitly telling the compiler, and future maintainers of your program, something like "yes, I know I'm calling a function that expects two Floats with just a single Character, but I've thought about it and it's correct in this case."