Prev: FYI -- Lunar lander project relies on SPARK programming language
Next: Simple hack to get $500 to your home
From: Keith Thompson on 22 Jun 2010 17:48 "Martin Krischik" <krischik(a)users.sourceforge.net> writes: > Am 14.06.2010, 18:45 Uhr, schrieb Keith Thompson <kst-u(a)mib.org>: > >> Not all Ada compilers implement Short_Short_Integer, but all Ada >> compilers do implement: >> type My_Type is range -128 .. 127; > > for My_Type'Size use 8; > > otherwise you type might not be as short as you think it is. That depends on whether you care about the size, or only about the range. It might also be rejected if the implementation doesn't use two's-complement. -- Keith Thompson (The_Other_Keith) kst-u(a)mib.org <http://www.ghoti.net/~kst> Nokia "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"
First
|
Prev
|
Pages: 1 2 3 4 5 Prev: FYI -- Lunar lander project relies on SPARK programming language Next: Simple hack to get $500 to your home |