[clean-list] operator with one argument
Edsko de Vries
devriese at cs.tcd.ie
Sat Apr 21 10:49:27 MEST 2007
On Fri, Apr 20, 2007 at 11:16:12PM +0100, Jigang Sun wrote:
> Maybe I am doing a strange thig:
>
> (INC) :: Int -> Int
> (INC) x = x + 1
>
> Start = (INC) 3
>
> it ok 4 is produced.
>
> if change to
> Start = 3 INC
> Error [test.icl,39,]: INC second argument of infix operator missing
>
> Could anyone suggest me what the second argument should be?
Clean does not support postfix functions. Notation in brackets is really
only useful when defining infix functions with two arguments. I do agree
that the error message is slightly misleading.
Edsko
More information about the clean-list
mailing list