gm2
[Top][All Lists]
Advanced

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

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


From: gaius
Subject: Re: [Gm2] INT() is not what is expected to be
Date: Wed, 11 Aug 2010 19:07:02 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Dragiša Durić <address@hidden> writes:

> % 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>

Hi Dragiša,

many thanks for the bug report and test code - now fixed in the latest cvs:

  * gm2/gm2-compiler/M2Base.mod:  added INT procedure functions
    to the list of functions in IsISOPseudoBaseFunction.  This
    fixes a bug reported by DragiÅ¡a DuriÄ\207
    <http://lists.gnu.org/archive/html/gm2/2010-07/msg00047.html>

regards,
Gaius



reply via email to

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