gm2
[Top][All Lists]
Advanced

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

Re: gm2 rejecting a constant statement as variable


From: Alice Osako
Subject: Re: gm2 rejecting a constant statement as variable
Date: Sat, 30 Mar 2024 16:12:44 -0400
User-agent: Mozilla Thunderbird

I have found out that part of the problem is the way the assignment is split across multiple lines. The following does in fact compile when written as a single line:

  BitsInUse = ORD(AddressableBits > MaxBits) * MaxBits + ORD(AddressableBits <= MaxBits) * AddressableBits;

Given that Modula-2 should treat newlines as whitespace, this is clearly problematic.

reply via email to

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