Jonathan Kelly wrote: > but sometimes unexpected when you don't know! :) > > Hi,
Hi again! It's fun having users :) > > I'm using svn from a few days ago (the current head build crashes). > First off, this comment. Did you use the most immediate version? If it's still crashing, you may need to clean up everything by running this (this assumes that you've already configured, and nothing in the config changed): ./mk virgin (cleans as much as possible) ./interscript/bin/iscr.py lpsrc/flx_maker.pak (extract the build system) ./mk extract (extract all the .pak files) ./mk (build the source) If you're on a unix-like system, you can substitute those two "mk"s with "make". If you're on windows, those would be "mk.bat". Anyway, is the build crashing, or reporting build errors? If it's saying things like "test/stdlib/..." failed, that's known, and ignorable. I've been extending our test framework, and felix hasn't caught up yet. If it's doing something else, please let us know. > I was playing around with using library functions to clarify my next > question, when I encounted the optimizing features of felix. I had > actually encountered it before when I was comparing performance between > felix and ocaml when I thought the console output might be skewing the > results because the ocaml version seemed to be buffering, so I removed > the display of the results of the tests, and suddenly felix was > infinitely more efficient than ocaml because it saw running the function > was useless, as the result wasn't being used. Pretty cool! > > Anyway, how do you use an external function that has side-effects, and > still get the result? I had inferred a guess about generators from > comments (the manual doesn't seem to have caught up to them yet) using > "gen jseek ..." but that gives the same results. Our file io library definitely needs some attention. Before going into your code, we do actually have a module to work with text files, called Text_file. Here's an example: foo.flx: #import <flx.flxh> val s = Text_file::load "foo.flx"; print 'here:'; endl; print s; endl; I got to run now, but when I get back I'll check your example, and try to figure out what's going on. -e ------------------------------------------------------------------------- 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 _______________________________________________ Felix-language mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/felix-language
