gm2
[Top][All Lists]
Advanced

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

[Gm2] INT() is not what is expected to be


From: Dragiša Durić
Subject: [Gm2] INT() is not what is expected to be
Date: Sat, 31 Jul 2010 08:34:20 +0200

% gm2 -I. -fiso -c TestCase10.mod
TestCase10.mod:8:3: error: too many parameters 1 passed to 'INT' 
TestCase10.mod:8:3: error: parameter not expected for procedure INT
TestCase10.mod:8:3: error: attempting to pass (1) parameters to procedure (INT) 
which was declared with (0) parameters
TestCase10.mod:8:3: error: attempting to pass (1) parameters to procedure (INT) 
which was declared with (0) parameters

MODULE TestCase10;

VAR
  r: REAL;
  i: INTEGER;
BEGIN
  r := 1.234;
  i := INT(r);
END TestCase10.

-- 
Dragiša Durić <address@hidden>




reply via email to

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