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 Path: g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!217.73.144.45.MISMATCH!feeder2.ecngs.de!ecngs!feeder.ecngs.de!news.germany.com!news.nask.pl!news.nask.org.pl!newsfeed.atman.pl!not-for-mail From: Szymon Guz Newsgroups: comp.lang.ada Subject: Re: pointer questions Date: Thu, 27 Oct 2005 12:19:51 +0200 Organization: ATMAN Message-ID: References: NNTP-Posting-Host: staticline10736.toya.net.pl Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: node3.news.atman.pl 1130408429 50474 85.89.162.229 (27 Oct 2005 10:20:29 GMT) X-Complaints-To: abuse@atman.pl NNTP-Posting-Date: Thu, 27 Oct 2005 10:20:29 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: pl, en-us, en In-Reply-To: X-Antivirus: avast! (VPS 0543-1, 2005-10-25), Outbound message X-Antivirus-Status: Clean Xref: g2news1.google.com comp.lang.ada:5985 Date: 2005-10-27T12:19:51+02:00 List-Id: Jeffrey R. Carter napisa=B3(a): > Szymon Guz wrote: >=20 >> I've got some maybe stupid questions but I don't understand some thing= s: >> >> 1. Is there a pointer like (void *) from C that points to anything ? >> >> 2. Is there a universal (like above) pointer for procedure|function=20 >> that can point to any kind of procedure|funcion ? >=20 >=20 > The short answer, as you've already heard, is No. >=20 > The long answer is that you'll never need these to use Ada. In fact,=20 > you'll rarely need pointers at all. If you think you do, especially for= =20 > beginning Ada, then you're probably misunderstanding something. >=20 > About the only time you'd need anything like these is when interfacing = > to C. Judging from your questions, I suspect your understanding of Ada = > is not yet at a level where you should be doing that. >=20 Well, that's how I thought but I wanted to ask. The problem that I want=20 to solve is how to create a property in type like that ones in=20 Delphi|Builder, so I have defined the property name, value, read and=20 write functions. I thought that it could be done by defining a generic=20 structure like this: Name Value Get_Function Set_Function when Value is a pointer to value, Get and Set are pointers to function=20 for setting and getting the value. That's why I thought about universal=20 variable pointer. =2E........................ Well, now I sought that it ca easily be done without any pointer, sorry regards szymon guz