[clean-list] Importing operator (>)

Arjen van Weelden A.vanWeelden at cs.ru.nl
Sat Jun 24 18:14:40 MEST 2006


Hi Romildo,

(>) is defined as a macro. Macro's, even those defined in the where of a
class definition, are not members of classes. Therefore, import them as
a function: from StdEnv import (>)
Probably, (>) also requires import class (<)(<). Anyway the compiler
will tell you.

regards,
	Arjen

j.romildo at gmail.com wrote:
> Hello.
> 
> Please, would anyone tell me how to import the operator (>) for the Int
> type in Clean.
> 
> I have tried:
> 
>   from StdEnv import class Ord(>), instance Ord Int
> 
> without success.
> 
> The operator (<) can be imported without problems with the declaration:
> 
>   from StdEnv import class <(<), instance < Int
> 
> Regards.
> 
> Romildo
> _______________________________________________
> clean-list mailing list
> clean-list at science.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/clean-list


More information about the clean-list mailing list