[system] Repository:
ViewVC logotype

Revision 4407

Jump to revision: Previous Next
Author: sh002i
Date: Thu Aug 24 21:56:25 2006 UTC (7 years, 7 months ago)
Log Message:
backport (sh002i): Added class to protect objects from evil prying
problem code.

Uses the closure-as-object technique to protect the self hash of the
underlying object from problem code. All that the problem code sees is a
blessed coderef. The coderef is a closure over the underlying object and
the list of allowed methods. You can invoke the coderef directly, with
the name of the method to invoke as the first argument, but the class
also provides an AUTOLOAD routine that calls the coderef for you, so you
can continue to use the class as usual.

Changed paths:

Path Details
Directorybranches/rel-2-3-dev/webwork-modperl/lib/WeBWorK/Utils/RestrictedClosureClass.pm modified , text changed
Directorybranches/rel-2-3-dev/webwork2/lib/WeBWorK/Utils/RestrictedClosureClass.pm modified , text changed

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9