delayed evaluation

Jacques <[email protected]>
Newsgroups gmane.comp.lang.sml.smlnj
Message-ID <1124860067.3917.27.camel@palomerites>
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
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.