On 01/07/2013, at 10:01 PM, srean wrote: > I think C_hack takes care of both my needs, and I dont dslike the "ignore" > part but the "C_hack" part. > > May be you can be of help here.
Well you can either open the class: open C_hack; or you can define your own ignore .. it's only a one line definition after all :) You can also inherit it into a scope or use the rename facility, but that's really overkill. > Now the problem is these take several hours, so now I need some feedback that > all is well and print some log on the screen time to time. Not only that, I > also need some file I/O to check point state, so that if something breaks I > dont begin from scratch. I am working on some tools related to this. Basically Felix has a "trace" feature which can be used for instrumentation. You should be able to add manual "trace" call or tell the compiler to add them, say, every function call. My idea is that if you're tracing, Felix will start a thread which runs a webserver. Then you can look at the program execution with a browser. Similarly, I am writing a text editor in SDL (portable graphics). This could be morphed into a debugging console, again, connecting to the program via TCP/IP. It could actually show the Felix text or C++ text or both executing. Note these are just ideas! not implemented yet. > So you see the need to return a value and also have side effects is not a > hack for me at all. Diagnostics like this are not side effects. :-) The do not impact the program operation. Now you are glad Felix does not enforce the rule that functions must not have side effects. > You say generators are not meant for this, and such structure is CRAP design > whereas to me this seems the most natural and clear. > If you have a clearer way to structure these in Felix I would love to hear. > It should be also clear why it matters to me nothing fishy happens to the > generators, like elision etc, I dont want to find that out a week from > running the code. You have to test your code on small examples first. Something fishy MIGHT happen. In any language. Compilers are not immune to bugs :) -- john skaller skal...@users.sourceforge.net http://felix-lang.org ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language