Skip to content

Commit

Permalink
Removed function for ValueGlobal
Browse files Browse the repository at this point in the history
and made it a synonym of VALUE_GLOBAL.
  • Loading branch information
sebasguts committed Mar 2, 2018
1 parent e755b88 commit 6bfe0af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
2 changes: 1 addition & 1 deletion lib/global.gd
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ DeclareGlobalFunction("IsValidIdentifier");
## </Description>
## </ManSection>
##
DeclareGlobalFunction("ValueGlobal");
DeclareSynonym("ValueGlobal", VALUE_GLOBAL);


#############################################################################
Expand Down
17 changes: 0 additions & 17 deletions lib/global.gi
Original file line number Diff line number Diff line change
Expand Up @@ -65,23 +65,6 @@ CheckGlobalName := function( name )
fi;
end;

#############################################################################
##
#M ValueGlobal ( <name> ) . . . . . . . . . . . access a global by its name
##
## ValueGlobal ( <name> ) returns the value currently bound to the global
## variable named by the string <name>. An error is raised if no value
## is currently bound
##

InstallGlobalFunction( ValueGlobal,
function (name)
local val;
CheckGlobalName( name );
val := VALUE_GLOBAL(name);
Info( InfoGlobal, 3, "ValueGlobal: access to ",name," returned ",val);
return val;
end);


#############################################################################
Expand Down

0 comments on commit 6bfe0af

Please sign in to comment.