Re: higher-order functors

Dave Herman <[email protected]>
Newsgroups gmane.comp.lang.sml.smlnj
Message-ID <[email protected]>
Sweet, thanks! Sorry I missed that in the documentation.

Dave

John Reppy wrote:
> The syntax you want is something like
> 
>   funsig COROUTINE (type result) = sig ... end
> 
>   functor Generator (functor Coroutine : COROUTINE) : GENERATOR = struct 
> ... end
> 
> see http://smlnj.org/doc/features.html for details.
> 
> Of course, this syntax is SML/NJ specific.
> 
>     - John


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.