From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: function "and"
Date: Wed, 06 Oct 2004 10:18:01 +0200
Date: 2004-10-06T10:18:01+02:00 [thread overview]
Message-ID: <1173154.Upbm3t2oAa@linux1.krischik.com> (raw)
In-Reply-To: cjuqtc$pka$02$1@news.t-online.com
Rick Santa-Cruz wrote:
> Hi,
>
> if I wanna overload the operator "and" then why I have to use quotes?
For the same reason you have to write "operator && ()" in C++. Just so that
the compiler knows you want to overload the operator and not write a
functions named And. Of corse C++ only has only got very few operators
using keywords (sizeof, typeof and such like) - and non can be overloaded -
soe the operator keyword comes more naturaly then the quote in Ada.
> Are there other cases when I have to use quotes?
Wherever you would use the keyword operator in C++ - thats when you want to
write a userdefined operator.
With Regards
Martin
--
mailto://krischik@users.sourceforge.net
http://www.ada.krischik.com
next prev parent reply other threads:[~2004-10-06 8:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-05 18:58 function "and" Rick Santa-Cruz
2004-10-05 19:20 ` David C. Hoos
2004-10-05 19:22 ` Frank J. Lhota
2004-10-05 19:56 ` Jeffrey Carter
2004-10-05 22:38 ` John Woodruff
2004-10-06 8:18 ` Martin Krischik [this message]
2004-10-06 9:33 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox