From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: Problem when overloading a procedure
Date: 1999/08/16
Date: 1999-08-16T00:00:00+00:00 [thread overview]
Message-ID: <7p80m4$an0$1@nnrp1.deja.com> (raw)
In-Reply-To: MPG.121fca311abf8d5b98999b@news.bcn.ttd.net
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 642 bytes --]
In article <MPG.121fca311abf8d5b98999b@news.bcn.ttd.net>,
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.
next prev parent reply other threads:[~1999-08-16 0:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-14 0:00 Problem when overloading a procedure JIMHER@yanoesladirecci�n.com
1999-08-14 0:00 ` David C. Hoos, Sr.
1999-08-16 0:00 ` Robert Dewar [this message]
1999-08-17 0:00 ` Samuel T. Harris
1999-08-18 0:00 ` JIMHER@yanoesladirecci�n.com
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox