tokuhirom / p6-Crust

PSGI library stack for Perl6
Artistic License 2.0
66 stars 18 forks source link

Repace EVAL qq{use lib} by proper API call #77

Closed niner closed 8 years ago

niner commented 8 years ago

The replacement is exactly what a "use lib" compiles to without the security issues that EVAL could bring.

lestrrat commented 8 years ago

So just to make sure, this works correctly in all cases? i.e. what happens if we run this on something other than Moar?

niner commented 8 years ago

Like I said, this is exactly the code the will run anyway with a use lib (see src/Perl6/World.nqp method do_pragma around line 812). It's in no way depending on any backend.

lestrrat commented 8 years ago

Thanks!