Renaming Internal Functions



next up previous contents index
Next: Modifications to REDUCE Up: No Title Previous: Getting Started

Renaming Internal Functions

  To avoid the possibility of collisions with the names of other functions in other packages that may be used with REDTEN in REDUCE, nearly all of the function and variable names in the REDTEN sources are in fact prepended with the string r10!-, so that, for example, the actual name of the lisp function executed when computing the Riemann tensor is r10!-riemann!*. Only the names actually required by the user are left unchanged. This manual uses the source code names, thus to access a variable described in the manual the r10!- should be prepended.

The sources themselves do not contain these names; it was considered too much trouble to rewrite everything. Instead, the REDUCE parser is modified while it loads the REDTEN source, and converts nearly all the names into the format described above. The code for this is in the file rename.red, which is loaded before any other files by the redten.gen build file. It must be emphasized that it is the compiling REDUCE whose parser is changed, the modifications are not part of the final REDTEN system (it also means that this file should not be loaded if the lisp system must be dumped, as opposed to creating fasl files).



John Harper
Wed Nov 16 13:34:23 EST 1994