Singular Manual: safeVarName

| ##### 7.7.21.0. safeVarName Procedure from library `dmodloc.lib` (see dmodloc_lib). Usage: safeVarName(s); s string Return: string, returns s if s is not the name of a par/var of basering and `@' + s otherwise Example:
    LIB "dmodloc.lib";
    ring r = (0,a),(w,@w,x,y),dp;
    safeVarName("a");
    ==> @a
    safeVarName("x");
    ==> @x
    safeVarName("z");
    ==> z
    safeVarName("w");
    ==> @@w

User manual for Singular version 4-0-2, 2015, generated by texi2html.