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-7-bit X-Google-Thread: 103376,adb9c1625b28a830 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-24 05:14:51 PST Path: supernews.google.com!sn-xit-02!supernews.com!newsfeed.mesh.ad.jp!newshub2.rdc1.sfba.home.com!news.home.com!cyclone-sjo1.usenetserver.com!news-out.usenetserver.com!cyclone-west.rr.com!news.rr.com!news-west.rr.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3A45E877.D82BDED7@earthlink.net> From: "Marc A. Criley" Organization: Quadrus Corporation X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Function returning "Boolean" in a binding References: <977543301.615948@cachalote.ip.pt> <922gp1$8nm$1@nnrp1.deja.com> <977592638.247411@cachalote.ip.pt> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sun, 24 Dec 2000 13:14:49 GMT NNTP-Posting-Host: 158.252.123.250 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 977663689 158.252.123.250 (Sun, 24 Dec 2000 05:14:49 PST) NNTP-Posting-Date: Sun, 24 Dec 2000 05:14:49 PST Xref: supernews.google.com comp.lang.ada:3388 Date: 2000-12-24T13:14:49+00:00 List-Id: Yes, "Internal bug" would not be a sanctioned GNAT error message for this situation. You ought to send a bug report to report@gnat.com describing exactly what you saw, and if possible providing a standalone program that demonstrates the problem. When you got the "Internal bug" message you were informed of this via a GNAT "bug box", yes? Just follow the directions it displays. Marc A. Criley Senior Staff Engineer Quadrus Corporation www.quadruscorp.com Antonio Vargas wrote: > > > I thought that conversion from Boolean to C.int was conventioned (I read > that somewhere ). > > But anyway since it is something dubious, the compiler should complain > about undefined conversion Instead of the message "Internal bug". > > And then I'm surprised that they used such a thing in the binding in > question. > > Antonio Vargas > > Ted Dennison wrote: > > > In article <977543301.615948@cachalote.ip.pt>, > > antonio.vargas@clix.pt wrote: > > > > type Xt_Work_Proc is access function (Client_Data : in Xt_Pointer) > >> return Boolean; > >> pragma Convention (C, Xt_Work_Proc); > >> > >> But if I change the return type form "Boolean" to "Interfaces.C.Int" > >> it compiles. Shouldn't the compiler make an automatic conversion > >> from Boolean(Ada side) to C.int (C side) ?. > > > > Why? How does the compiler know that's what you want Boolean to map to? > > You could want to use it for a C "char" for all it knows. > > > > > > -- > > T.E.D. > > > > http://www.telepath.com/~dennison/Ted/TED.html > > > > > > Sent via Deja.com > > http://www.deja.com/ > >