gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Boolean constants


From: Michael Riedl
Subject: Boolean constants
Date: Sun, 25 Aug 2024 11:09:34 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

Hallo Gaius,

can you have a look on the following small piece of code:

MODULE TestBool;

CONST Logical1 = TRUE;

      Logical2 = NOT Logical1; (* crash *)
      Logical3 = NOT TRUE;     (* crash *)

      Logical4 = (1 = 0);      (* crash *)
      Logical5 = (1 = 1);      (* crash *)
BEGIN
END TestBool.

I would think that at least the line "Logical2 = NOT Logical1;" and "Logical3 = NOT TRUE;" should be OK.

The lines with Logical4 and Logical5 are for sure "quick and dirty" but handy to quickly switch off and on some code segments during development (would not do that in production code).

Gruß / Greetings

Michael




reply via email to

[Prev in Thread] Current Thread [Next in Thread]