gm2
[Top][All Lists]
Advanced

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

Re: [Gm2] another one, with procedure value being returned, present as o


From: Gaius Mulley
Subject: Re: [Gm2] another one, with procedure value being returned, present as of 0.9.8-1.2
Date: Mon, 20 Sep 2010 12:19:52 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

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

> % gm2 -fiso -c TestCase15.mod 
> TestCase15.mod:13:5: error: attempting to RETURN a value with an incompatible 
> type (BOOLEAN) from a function which returns (ErrPROC)
>
> MODULE TestCase15;
>
> TYPE
>   ErrPROC = PROCEDURE(): BOOLEAN;
>   
> PROCEDURE NILErrorProc(): BOOLEAN;
>   BEGIN
>     RETURN FALSE;
>   END NILErrorProc;
>   
> PROCEDURE GetErrorProc(): ErrPROC;
>   BEGIN
>     RETURN NILErrorProc;
>   END GetErrorProc;
>   
> BEGIN
> END TestCase15.

Hi Dragiša,

many thanks - now under investigation,

regards,
Gaius



reply via email to

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