[clean-list] Importing operator (>)
Arjen van Weelden
A.vanWeelden at cs.ru.nl
Sat Jun 24 18:14:40 MEST 2006
(>) 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.
j.romildo at gmail.com wrote:
> 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
> clean-list mailing list
> clean-list at science.ru.nl
More information about the clean-list