Top
Back: if
Forward: keepring
FastBack: Functions
FastForward: System variables
Up: Control structures
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

5.2.9 importfrom

Syntax:
importfrom( package_name , name );
importfrom( package_name , list_of_names );
Purpose:
creates a new identifier in the current package which is a copy of the one specified by name in the package package_name. package_name can be Top or any other identifier of type package.

Note:
Objects defined in a ring are not automatically imported when importing the ring.

Warning:
The identifier is copied to the current package. It does still exist (independently) in the package package_name. If the identifier should be erased in the package from which it originates, exportto should be used instead.

Example:
 
listvar(Top);
==> // Top                  [0]  package (N)
==> // ::datetime           [0]  proc from standard.lib
==> // ::weightKB           [0]  proc from standard.lib
==> // ::fprintf            [0]  proc from standard.lib
==> // ::printf             [0]  proc from standard.lib
==> // ::sprintf            [0]  proc from standard.lib
==> // ::quotient4          [0]  proc from standard.lib
==> // ::quotient5          [0]  proc from standard.lib
==> // ::quotient3          [0]  proc from standard.lib
==> // ::quotient2          [0]  proc from standard.lib
==> // ::quotient1          [0]  proc from standard.lib
==> // ::quot               [0]  proc from standard.lib
==> // ::res                [0]  proc from standard.lib
==> // ::groebner           [0]  proc from standard.lib
==> // ::qslimgb            [0]  proc from standard.lib
==> // ::hilbRing           [0]  proc from standard.lib
==> // ::par2varRing        [0]  proc from standard.lib
==> // ::quotientList       [0]  proc from standard.lib
==> // ::stdhilb            [0]  proc from standard.lib
==> // ::stdfglm            [0]  proc from standard.lib
load("inout.lib");
listvar(Top);
==> // Top                  [0]  package (N)
==> // ::datetime           [0]  proc from standard.lib
==> // ::weightKB           [0]  proc from standard.lib
==> // ::fprintf            [0]  proc from standard.lib
==> // ::printf             [0]  proc from standard.lib
==> // ::sprintf            [0]  proc from standard.lib
==> // ::quotient4          [0]  proc from standard.lib
==> // ::quotient5          [0]  proc from standard.lib
==> // ::quotient3          [0]  proc from standard.lib
==> // ::quotient2          [0]  proc from standard.lib
==> // ::quotient1          [0]  proc from standard.lib
==> // ::quot               [0]  proc from standard.lib
==> // ::res                [0]  proc from standard.lib
==> // ::groebner           [0]  proc from standard.lib
==> // ::qslimgb            [0]  proc from standard.lib
==> // ::hilbRing           [0]  proc from standard.lib
==> // ::par2varRing        [0]  proc from standard.lib
==> // ::quotientList       [0]  proc from standard.lib
==> // ::stdhilb            [0]  proc from standard.lib
==> // ::stdfglm            [0]  proc from standard.lib
importfrom(Inout,pause);
listvar(Top);
==> // Top                  [0]  package (N)
==> // ::pause              [0]  proc from inout.lib
==> // ::datetime           [0]  proc from standard.lib
==> // ::weightKB           [0]  proc from standard.lib
==> // ::fprintf            [0]  proc from standard.lib
==> // ::printf             [0]  proc from standard.lib
==> // ::sprintf            [0]  proc from standard.lib
==> // ::quotient4          [0]  proc from standard.lib
==> // ::quotient5          [0]  proc from standard.lib
==> // ::quotient3          [0]  proc from standard.lib
==> // ::quotient2          [0]  proc from standard.lib
==> // ::quotient1          [0]  proc from standard.lib
==> // ::quot               [0]  proc from standard.lib
==> // ::res                [0]  proc from standard.lib
==> // ::groebner           [0]  proc from standard.lib
==> // ::qslimgb            [0]  proc from standard.lib
==> // ::hilbRing           [0]  proc from standard.lib
==> // ::par2varRing        [0]  proc from standard.lib
==> // ::quotientList       [0]  proc from standard.lib
==> // ::stdhilb            [0]  proc from standard.lib
==> // ::stdfglm            [0]  proc from standard.lib

See export; exportto; keepring.


Top Back: if Forward: keepring FastBack: Functions FastForward: System variables Up: Control structures Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 3-1-2, Oct 2010, generated by texi2html.