this (Felix code calling the C system function):

    unused := system("man -M "+FLX_INSTALL_DIR+Filename::sep+"man"+" flx");

does not work, whereas this:

      result=system("cp -r "+FLX_INSTALL_DIR+" "+INSTALL_ROOT);

and numerous other such commands, including the invocation of gcc etc,
also work. system is defined by:

gen system(cmd:string):int= {
  if ECHO==1 do println(cmd); done
  var result = System::system(cmd);
  if ECHO==1 do println("Result code " + str(result)); done
  return result;
}


ARRRGGGG .. I know what it is... this is a bug? in Felix compiler! "unused" is
not used  .. so it is optimising the call away.

But that is a BUG because "system" is a generator. Or is it?


--
john skaller
skal...@users.sourceforge.net





------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to