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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix B 375<br />

access<br />

enumeration<br />

Elementary types<br />

discrete<br />

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

signed<br />

modular<br />

scalar<br />

All types<br />

fixed<br />

decimal<br />

ord<strong>in</strong>ary<br />

array<br />

real<br />

Composite types<br />

record<br />

float<br />

Numeric types<br />

protected<br />

task<br />

B.6 Implementation requirements of standard types<br />

Type M<strong>in</strong> value Max value Notes<br />

Integer -32768 32767<br />

Long_Integer -2147483648 2147483647 1<br />

Float<br />

6 dec. places<br />

Long_float 11 dec. places 2<br />

M<strong>in</strong> Value The m<strong>in</strong>imal value that mu st be representable (smaller values are allowed).<br />

Max Value<br />

The maximum value that must be representable (larger numbers are allowed).<br />

Note: 1<br />

Note: 2<br />

Should be provided by an implementation if the target mach<strong>in</strong>e supports 32bit or longer arithmetic.<br />

May be provided.<br />

B.7 Exceptions<br />

B.7.1Pre-def<strong>in</strong>ed exceptions<br />

Exception<br />

Explanation<br />

Constra<strong>in</strong>t_Error Raised when an attempt is made to assign a value to a<br />

variable which does not satisfy a constra<strong>in</strong>t def<strong>in</strong>ed on<br />

the variable.<br />

Storage_Error Raised when a program tries to allocate more memory<br />

than is available to it.<br />

Program_Error Raised when an attempt is made to execute an<br />

erroneous action. For example, leav<strong>in</strong>g a function<br />

without execut<strong>in</strong>g a return statement.<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!