On 4/15/05, Shevek <[EMAIL PROTECTED]> wrote:
> > How can dropping a privilege for the duration of a (dynamic) scope be
> > implemented? Does this need to be implemented via a parrot intrinsic,
> > such as:
> >
> >   without_privs(list_of_privs, code_to_be_run_without_these_privs);
> >
> > ..or is it possible to do so with the primitives you sketched out above?
> 
> This is usually done by creating a function "f(code) { code() }" without
> any static privileges in list_of_privs.
>
> To evaluate a function g()
> without those privileges, evaluate f(g), and the natural mechanisms of
> the interpreter will ensure that these privileges are not held during
> g().

I understand, thanks.
Michael

Reply via email to