Re: Anonymous functions and safe compartments

2014-12-28 Thread Brandon McCaig
A few corrections on my part... On Sun, Dec 28, 2014 at 04:35:49PM -0500, Brandon McCaig wrote: > > sub func1{ > > say "About to run shared function!"; > > $anon_func->("func1"); > > } Oh, duh, there is func1 right there. :\ OK, that part makes sense. :) > Or else: > > sub shared_func =

Re: Anonymous functions and safe compartments

2014-12-28 Thread David Emanuel da Costa Santiago
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hello Brandon. Thanks for your reply. > I think that the first part that you're having trouble with is > sharing data (or code) with the "compartment". I think that if > you want for $anon_func to be available to the Safe compartment, > and theref

Re: Anonymous functions and safe compartments

2014-12-28 Thread Brandon McCaig
David: On Sun, Dec 28, 2014 at 07:35:14PM +0100, David Emanuel da Costa Santiago wrote: > Hello! Hello, > How do i run and pass arguments to an anonymous subroutine that i shared > on a safe compartment? > > My goal is to have a function that perform "dangerous" operations, that > must be avail

Anonymous functions and safe compartments

2014-12-28 Thread David Emanuel da Costa Santiago
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hello! How do i run and pass arguments to an anonymous subroutine that i shared on a safe compartment? My goal is to have a function that perform "dangerous" operations, that must be available to untrusted code, however this function needs some p