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-Language: ENGLISH,ASCII X-Google-Thread: 103376,5114c1c6ad71f555 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-03 15:56:23 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!newsfeed.icl.net!newsfeed.fjserv.net!news.algonet.se!algonet!news-stob.telia.net!telia.net!194.22.194.4.MISMATCH!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail From: David Holm Subject: Re: New Ada binding to OpenGL Newsgroups: comp.lang.ada References: User-Agent: KNode/0.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit Message-ID: Date: Fri, 03 Jan 2003 23:56:22 GMT NNTP-Posting-Host: 217.208.105.23 X-Complaints-To: abuse@telia.com X-Trace: newsb.telia.net 1041638182 217.208.105.23 (Sat, 04 Jan 2003 00:56:22 CET) NNTP-Posting-Date: Sat, 04 Jan 2003 00:56:22 CET Organization: Telia Internet Xref: archiver1.google.com comp.lang.ada:32510 Date: 2003-01-03T23:56:22+00:00 List-Id: Joachim Schr�er wrote: > Hello, > > to pass null simply write something like > Gl.Glclipplane(Plane => 1, Equation => null); > > But why do you want to pass null access values. > > I expect some kind of error in the C code then. > > I will have a look for books were Ada/C coding is documented. > > I thing, the Ada95 rationale is a good reference. I will give you links > later. > > J. Schr�er > Yeah, you were correct. I got errors in the C code. The thing is that for instance, glXCreateContext takes a C NULL pointer when you want to create a new context that is not a subcontext to an existing one. I have not yet managed to find a solution to how to handle this in Ada as I get a segfault in libGL when I do it (which is odd since I have a C application that passes a C-NULL here without any problems). In this case I had an overloaded function which took System.Address, so I never passed a null through an access variable. I found the rationale on www.adahome.org, so no need to send a link. //David Holm