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.10 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 Top (T)
==> // ::mathicgb_prOrder             [0]  proc from singmathic.so (C)
==> // ::mathicgb                     [0]  proc from singmathic.so (C)
==> // ::create_ring                  [0]  proc from standard.lib
==> // ::min                          [0]  proc from standard.lib
==> // ::max                          [0]  proc from standard.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
==> // ::Float                        [0]  proc from kernel (C)
==> // ::crossprod                    [0]  proc from kernel (C)
load("inout.lib");
listvar(Top);
==> // Top                            [0]  package Top (T)
==> // ::mathicgb_prOrder             [0]  proc from singmathic.so (C)
==> // ::mathicgb                     [0]  proc from singmathic.so (C)
==> // ::create_ring                  [0]  proc from standard.lib
==> // ::min                          [0]  proc from standard.lib
==> // ::max                          [0]  proc from standard.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
==> // ::Float                        [0]  proc from kernel (C)
==> // ::crossprod                    [0]  proc from kernel (C)
importfrom(Inout,pause);
listvar(Top);
==> // Top                            [0]  package Top (T)
==> // ::pause                        [0]  proc from inout.lib
==> // ::mathicgb_prOrder             [0]  proc from singmathic.so (C)
==> // ::mathicgb                     [0]  proc from singmathic.so (C)
==> // ::create_ring                  [0]  proc from standard.lib
==> // ::min                          [0]  proc from standard.lib
==> // ::max                          [0]  proc from standard.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
==> // ::Float                        [0]  proc from kernel (C)
==> // ::crossprod                    [0]  proc from kernel (C)

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 4.3.2, 2023, generated by texi2html.