comp.lang.ada
 help / color / mirror / Atom feed
From: stt@ada-uts
Subject: Re: Overloading "and"
Date: Thu, 6-Nov-86 10:47:00 EST	[thread overview]
Date: Thu Nov  6 10:47:00 1986
Message-ID: <4700083@ada-uts> (raw)
In-Reply-To: 1146@ucbvax.berkeley.edu


It is illegal to overload "and then" and "or else" (as these
are "operations" but not "operators"), but it is
perfectly legal to overload the logical operators "and,"
"or," and "xor."

The only restriction about overloading operators has to
do with "=" and "/=."  You may not separately overload "/=,"
and you may only define "=" for limited types, or by renaming
another "=."   Thanks to generics, you can in fact
define "=" for any type by doing so in an instantiation
of a generic passing the type as the actual matching a formal
limited private type.

       reply	other threads:[~1986-11-06 15:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1146@ucbvax.berkeley.edu>
1986-11-06 15:47 ` stt [this message]
1986-11-12 18:12   ` Re: Overloading "and" jeff
1986-10-31 14:25 Mike Linnig
replies disabled

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