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=2.1 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY,PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,2ea6ccd50b440aa7 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Problem when overloading a procedure Date: 1999/08/16 Message-ID: <7p80m4$an0$1@nnrp1.deja.com>#1/1 X-Deja-AN: 513214439 References: X-Http-Proxy: 1.0 x27.deja.com:80 (Squid/1.1.22) for client 166.72.69.150 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Mon Aug 16 03:31:16 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-08-16T00:00:00+00:00 List-Id: In article , vtis0102@CACANOps.uib.es (JIMHER@yanoesladirecci�n.com) wrote: > string or MyType, so I tried > > ... > begin > proc(string("hello")); > end program; > > but the compiler didn't accept it. > > I think that it will be some language way to tell the compiler if the > literal sent to 'proc' is of type string or of type MyType Use a qualified expression (with a quote). If you use GNAT, it would have told you that, with an explicit msg: program.adb:13:16: use qualified expression instead Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.