Skip to content

override built-in classes #38

@tobyink

Description

@tobyink

Would be good if you could do:

my $interpreter = Sidef->new(
   classes => {
      Sys   => 'My::Sidef::Sys::Sys',
   },
);

And that instance of Sidef would use My::Sidef::Sys::Sys instead of Sidef::Sys::Sys. This would allow you to run scripts in a safe evaluation context which didn't have access to Sys.exec() and so on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions