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