REDUCE

12.5 Using Variables as Filenames

The commands in, out and shut treat their arguments as constants, but you can use variables if you make them into group expressions by enclosing them between << and >> symbols, e.g.

     filename := "something/long/and/complicated.red";
     out <<filename>>;
     % perform some computation...
     shut <<filename>>;


Hosted by Download REDUCE Powered by MathJax