From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3f231d45203ddf5a X-Google-Attributes: gid103376,public From: Dale Stanbrough Subject: Re: Assertion Error Date: 1998/02/03 Message-ID: <6b64u1$cjd$1@goanna.cs.rmit.edu.au>#1/1 X-Deja-AN: 321570764 Content-Transfer-Encoding: 8bit References: <6b3oi8$osq$1@gte1.gte.net> X-XXMessage-ID: Mime-Version: 1.0 Distribution: world Content-Type: text/plain; charset=ISO-8859-1 Organization: RMIT Newsgroups: comp.lang.ada Date: 1998-02-03T00:00:00+00:00 List-Id: "Got a problem: When compiling code being ported from another platform, we get an "assertion error". We are using the Rational VADS system on Solaris. Can someone explain to me what the meaning is and what we might possibly do to remedy the problem?" You make lots of assertions about programs when you write them. Most are in the form of type declarations ('this variable is used to hold integer values'). Some are about the valid range of values it may hold ('this variable can only have values b/w 1 and 10'). Other things you may want to assert may not be directly expressed using language features but can be in the form of a boolean expression (e.g. 'this pointer is now non null'). Somewhere, some clever person has put an assertion in your code, and now some fundamental assumption that they made (either about the environment, or how the program is to work) has been broken, and your software is kindly telling you about it. Typically assertions look like a procedure call... assert (ptr /= null); assert (x in 1..40); assert (present (language_list, "Ada")); and raise an exception when the boolean expression evaluates to false. Dale