1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
|
#############################################################################
##
#W reread.g GAP Library Steve Linton
##
#H @(#)$Id: reread.g,v 4.8 2003/02/18 17:11:10 gap Exp $
##
#Y Copyright (C) 1996, Lehrstuhl D fuer Mathematik, RWTH Aachen, Germany
#Y (C) 1998 School Math and Comp. Sci., University of St. Andrews, Scotland
#Y Copyright (C) 2002 The GAP Group
##
## This file contains the Reread function and its relatives
## RereadLib, etc.
##
## Seems rather little for a file by itself, but I can see no other
## natural home
##
Revision.reread_g :=
"@(#)$Id: reread.g,v 4.8 2003/02/18 17:11:10 gap Exp $";
BindGlobal("Reread",
function(arg)
local res;
MakeReadWriteGlobal("REREADING");
REREADING := true;
MakeReadOnlyGlobal("REREADING");
if LEN_LIST(arg) > 1 then
res := CallFuncList( Read, arg );
else
CallFuncList( Read, arg );
fi;
MakeReadWriteGlobal("REREADING");
REREADING := false;
MakeReadOnlyGlobal("REREADING");
if LEN_LIST(arg) > 1 then
return res;
fi;
end);
BindGlobal("RereadAndCheckFunc",
function( arg )
local func;
func := CallFuncList(ReadAndCheckFunc, arg);
return function( arg )
local res;
MakeReadWriteGlobal("REREADING");
REREADING := true;
MakeReadOnlyGlobal("REREADING");
if LEN_LIST(arg) > 1 then
res := CallFuncList(func,arg);
else
CallFuncList(func,arg);
fi;
MakeReadWriteGlobal("REREADING");
REREADING := false;
MakeReadOnlyGlobal("REREADING");
if LEN_LIST(arg) > 1 then
return res;
fi;
end;
end);
#############################################################################
##
#F RereadLib( <name> ) . . . . . . . . . . . . . . . . . . . . . library files
##
BIND_GLOBAL("RereadLib",RereadAndCheckFunc("lib"));
#############################################################################
##
#F RereadGrp( <name> ) . . . . . . . . . . . . . . . . . . group library files
##
BIND_GLOBAL("RereadGrp",RereadAndCheckFunc("grp"));
#############################################################################
##
#F RereadSmall( <name> ) . . . . . . . . . . . . . small groups library files
##
BIND_GLOBAL("RereadSmall",RereadAndCheckFunc("small"));
#############################################################################
##
#F RereadPrim( <name> ) . . . . . . . . . primitive perm groups library files
##
BIND_GLOBAL("RereadPrim",RereadAndCheckFunc("prim"));
#############################################################################
##
#F RereadTrans( <name> ) . . . . . . . . transitive perm groups library files
##
BIND_GLOBAL("RereadTrans",RereadAndCheckFunc("trans"));
#############################################################################
##
#E
|