Product Site

5.1.5.1. new (Class Method)

Returns a new instance of the package class, which is a representation of the code contained in the source. The name is a string. The source can be a single string or an array of strings containing individual method lines. If source isn't specified, name identifies a file that will be used as the package source. The file is searched for using the external program search order.

The context allows the created package to inherit class and routine lookup scope from another source. If specified, context can be a Method object, a Routine object, or a Package object. If not specified, the newly created package will inherit the class and routine search scope from the caller of new method.