INT cannot be coerced to LONG REAL in a strong-UNIT

chris hermansen clhermansen@gmail.com
Fri Jun 20 21:14:06 GMT 2025


Good day,

I'm running into what seems to be an error to me, based on my still-rusty
Algol 68 coercion fu.

I have this expression:

long real a0 = ABS "0";

and ga68 gives me this error:

error: INT cannot be coerced to LONG REAL in a strong-UNIT

That doesn't seem correct to me; as far as I know, INT can be widened to
REAL and REAL to LONG REAL in a strong context.

I must be missing something but not sure what...
-- 
Chris Hermansen · clhermansen "at" gmail "dot" com

C'est ma façon de parler.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/algol68/attachments/20250620/da7ee5d8/attachment.htm>


More information about the Algol68 mailing list