On Tue, 2006-12-19 at 02:32 -0800, Erick Tryzelaar wrote: > skaller wrote: > >> Oddly enough, it's gcc.
> These times are pretty disheartening. I can't imagine trying to work > with a 10k line felix program. Errmm .. but the problem here is g++ isn't it? > It certainly would be interesting if our functions were actually pure > functions, and didn't allow procedures to be called inside them as they > may cause side effects. Procedures inside functions are allowed to have side effects, provided they only modify variables of the function's stack frame. > Then this subset of felix could become a eager > haskell-lite. That might get some of those hair-shirters to come and > take a look. Not unless the gc overhead is reduced from 6 words .. 48 bytes on a 64 bit machines .. and looks like arrays need another word. > >> Oh and one last one: the #import / #include of interdependent code. > >> There any way that we could implicitly put in import guards? > > > > It used to have them. The problem was it didn't work right. > > What did you do? My first instinct would be to have some global log of > all the imported files, and as we import a file, we check if it's > already been imported. If so, just ignore the declaration. Exactly. And that doesn't work. That would be fine if an imported file's symbols were visible to every other piece of code, but they're not .. they're localised to the importer file if they're macros .. but global if they're ordinary declarations. Problem is import etc can be used for both importing macros, but can also import other stuff .. hard to know the difference. This needs revisiting. > //////////////////////////////////// > a.flx: > var x = 1; > > b.flx: > x += 1; > > c.flx: > #include "a.flx" > #include "b.flx" > #include "b.flx" > > print x; endl; // prints 3 > //////////////////////////////////// > > I'm not sure if we really want to support this. No, we don't. -- John Skaller <skaller at users dot sf dot net> Felix, successor to C++: http://felix.sf.net ------------------------------------------------------------------------- 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
