Re: delayed evaluation
John Reppy <[email protected]>
| Newsgroups | gmane.comp.lang.sml.smlnj |
|---|---|
| Message-ID | <[email protected]> |
Do you have Control.lazysml set to true? If you are using CM to compile your source, then there is some magic to enable the lazy features, but I'm not sure what it is off hand. The documentation should explain, or you can ask Matthias ([email protected]). - John On Aug 24, 2005, at 12:07 AM, Jacques wrote: > I managed to get around the compiler flag by using the build > manager cm, > though if anyone has any insight as to how to get around that it would > be great. However, I was wondering how I could write something like > > > val rec lazy fibs = scons(1,(scons(1,addStreams fibs (tail fibs)))) > > where addStreams takes 2 streams and adds them and scons takes a value > and a stream and returns a new stream. This gives me the syntax error > > /tmp/sml11246KJy:9.14 Error: syntax error: inserting EQUALOP > > thanks for any help! > --Jacques > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/ > bsce5sf > _______________________________________________ > Smlnj-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/smlnj-list > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf