18.10.2014 Views

Object-oriented Software in Ada 95

Object-oriented Software in Ada 95

Object-oriented Software in Ada 95

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

374 Appendix B<br />

+ - (monadic) numeric<br />

+ - (dyadic) numeric<br />

* <strong>in</strong>teger * <strong>in</strong>teger<br />

float<strong>in</strong>g * float<strong>in</strong>g<br />

fixed * <strong>in</strong>teger<br />

<strong>in</strong>teger * fixed<br />

universal fixed * universal fixed<br />

root real * root <strong>in</strong>teger<br />

root <strong>in</strong>teger * root real<br />

Same as operands<br />

Same as operands<br />

<strong>in</strong>teger<br />

float<strong>in</strong>g<br />

fixed<br />

fixed<br />

universal fixed<br />

root real<br />

root real<br />

/ <strong>in</strong>teger / <strong>in</strong>teger<br />

float<strong>in</strong>g / float<strong>in</strong>g<br />

fixed / <strong>in</strong>teger<br />

universal fixed / universal fixed<br />

root real / root <strong>in</strong>teger<br />

<strong>in</strong>teger<br />

float<strong>in</strong>g<br />

fixed<br />

universal fixed<br />

root real<br />

mod rem <strong>in</strong>teger <strong>in</strong>teger<br />

** <strong>in</strong>teger ** <strong>in</strong>teger (>= 0 )<br />

float<strong>in</strong>g ** <strong>in</strong>teger (>= 0 )<br />

<strong>in</strong>teger<br />

float<strong>in</strong>g<br />

not Boolean<br />

1D Boolean array<br />

modular<br />

abs numeric numeric<br />

Boolean<br />

1D Boolean array<br />

modular<br />

Note:<br />

In the table 1D is a shorthand for a one dimensional array.<br />

B.4.1Priority of operators from high to low<br />

and or xor and then or else Logical operators<br />

High<br />

= /= < >= Relational operators<br />

+ - * / & Dyadic arithmetic<br />

jo<strong>in</strong> operator<br />

+ - Monadic arithmetic operators<br />

* / mod rem Dyadic arithmetic operators<br />

** abs not The others Low<br />

B.5 <strong>Ada</strong> type hierarchy<br />

© M A Smith - May not be reproduced without permission

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!