comp.lang.ada
 help / color / mirror / Atom feed
From: Kilgallen@SpamCop.net (Larry Kilgallen)
Subject: Re: Perform "or" on a scalar type?
Date: 26 Feb 2002 05:40:46 -0600
Date: 2002-02-26T05:40:46-06:00	[thread overview]
Message-ID: <CElJg5msa0zt@eisner.encompasserve.org> (raw)
In-Reply-To: a5fnvq$6c3$1@newstoo.ericsson.se

In article <a5fnvq$6c3$1@newstoo.ericsson.se>, "Verner" <sebastian.madunic@avionics.saab.se> writes:

> What is the easyiest way to persorm an "or" operation on a Unsigned_16 and a
> scalar type?

Perform conversions so they have the same type.

A hallmark of Ada is the notion that conversions are explicit where
in other languages they might be implicit.  The attitude with Ada is
that it is not sufficient for you to understand what you want -- you
must specify it to the compiler.



  reply	other threads:[~2002-02-26 11:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-26 10:53 Perform "or" on a scalar type? Verner
2002-02-26 11:40 ` Larry Kilgallen [this message]
2002-02-26 16:05 ` Matthew Heaney
  -- strict thread matches above, loose matches on Subject: below --
2002-02-26 12:22 Gautier Write-only-address
replies disabled

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