comp.lang.ada
 help / color / mirror / Atom feed
From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: A new notion: stronglly-typed-by-user language
Date: Sun, 18 Apr 2010 10:04:24 +0200
Date: 2010-04-18T10:04:24+02:00	[thread overview]
Message-ID: <hqeeeb$6ie$1@news.eternal-september.org> (raw)
In-Reply-To: <acc47575-b539-4e0d-8299-aacacee77e3e@11g2000yqr.googlegroups.com>

Maciej Sobczak a �crit :
[..]
> No. Not only it is not logical - it will not even compile.
> 
[...]
> Your example above cannot compile, because the actual parameter int
> cannot be promoted to long (int is never promoted, only "lower" types
> are) and its conversion to either short or long has equal rank -
> therefore the call is ambiguous.
> 
> This has *nothing* to do with representation - these types are all
> different even if they have the same representation.
> 
[...]
> Overload resolution does *not* depend on implementation in C++, it is
> precisely defined with no relation to representation.
I admit my C++ is a bit old, based mainly on Stroustrup where I picked
this example from. Is current C++ differs, it is a good thing, but I
still wonder
1) if your description is about standard (1998) C++?
2) if all compilers really behave like this?

> Just imagine - what would happen if there was a C++ programmer on your
> tutorial and you presented these arguments? ;-) ;-) ;-)
If my point is wrong, I'll withdraw it. The first thing when arguing is
to have valid argument, otherwise it is too easy to dismiss you.
Thanks for pointing out valid arguments!

-- 
---------------------------------------------------------
           J-P. Rosen (rosen@adalog.fr)
Visit Adalog's web site at http://www.adalog.fr



  reply	other threads:[~2010-04-18  8:04 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-15  8:59 A new notion: stronglly-typed-by-user language J-P. Rosen
2010-04-15  9:19 ` Martin Krischik
2010-04-16  0:22   ` BrianG
2010-04-16  6:26     ` Martin Krischik
2010-04-15  9:59 ` Dmitry A. Kazakov
2010-04-15 10:49 ` Georg Bauhaus
2010-04-15 21:31 ` Maciej Sobczak
2010-04-16  7:28   ` J-P. Rosen
2010-04-16  7:48     ` Dmitry A. Kazakov
2010-04-16 15:32     ` Maciej Sobczak
2010-04-16 16:52       ` Georg Bauhaus
2010-04-16 17:24         ` Dmitry A. Kazakov
2010-04-16 20:53           ` Pascal Obry
2010-04-16 21:51             ` Dmitry A. Kazakov
2010-04-16 20:20       ` J-P. Rosen
2010-04-16 20:50         ` Maciej Sobczak
2010-04-17  5:25           ` J-P. Rosen
2010-04-17  7:00             ` Dmitry A. Kazakov
2010-04-17 11:40               ` J-P. Rosen
2010-04-17 14:09                 ` Dmitry A. Kazakov
2010-04-17 14:33             ` Maciej Sobczak
2010-04-17 18:57               ` J-P. Rosen
2010-04-17 22:02                 ` Maciej Sobczak
2010-04-18  8:04                   ` J-P. Rosen [this message]
2010-04-18 20:17                     ` Maciej Sobczak
2010-04-16  7:29   ` Dmitry A. Kazakov
2010-04-16 10:34   ` xavier grave
2010-04-16 19:26     ` Gautier write-only
2010-04-18  0:27 ` Gene
2010-04-18 20:38 ` Gautier write-only
2010-04-19  8:46   ` Maciej Sobczak
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox