aboutsummaryrefslogtreecommitdiff
path: root/Doc/Manual
diff options
context:
space:
mode:
authorKarl Wette <karl.wette@gmail.com>2012-11-28 20:22:56 +0000
committerKarl Wette <karl.wette@gmail.com>2012-11-28 20:22:56 +0000
commite60ae2d81dfc6eb68e082552deeab368818c3575 (patch)
tree1ac450466293b7bc6966da865a0ac98d012cb751 /Doc/Manual
parent092e2104c7ed49ec967742799cfa7bf7053c7cda (diff)
downloadswig-e60ae2d81dfc6eb68e082552deeab368818c3575.tar.gz
octave: Simplified module loading.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13941 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Doc/Manual')
-rw-r--r--Doc/Manual/Octave.html44
1 files changed, 1 insertions, 43 deletions
diff --git a/Doc/Manual/Octave.html b/Doc/Manual/Octave.html
index b8cf02a77..0340c2fd5 100644
--- a/Doc/Manual/Octave.html
+++ b/Doc/Manual/Octave.html
@@ -181,12 +181,7 @@ When Octave is asked to invoke <tt>example</tt>, it will try to find the ".m" or
</p>
<p>
-An Octave module can either load its symbols into the global namespace, so that they can be accessed directly without having to type the module name.
-Alternatively, an Octave module can be accessed through a local variable, without being loaded globally.
-</p>
-
-<p>
-To load an Octave module globally, simply type its name:
+To load an Octave module, simply type its name:
</p>
<div class="targetlang"><pre>
@@ -201,43 +196,6 @@ ans = 4
</pre></div>
<p>
-To access an Octave module through a local variable, without loading it globally, simply assign the module name (e.g. "example") to the desired local variable:
-</p>
-
-<div class="targetlang"><pre>
-octave:1&gt; example = example;
-octave:2&gt; example.gcd(6,9)
-ans = 3
-octave:3&gt; example.cvar.Foo
-ans = 3
-</pre></div>
-
-<p>
-The variable may have the same name as the module, or a shorter one:
-</p>
-
-<div class="targetlang"><pre>
-octave:1&gt; ex = example;
-octave:2&gt; ex.gcd(6,9)
-ans = 3
-octave:3&gt; ex.cvar.Foo
-ans = 3
-</pre></div>
-
-<p>
-It is also possible to rename the global variables namespaces with an assignment, as in:
-</p>
-
-<div class="targetlang"><pre>
-octave:1&gt; example;
-octave:2&gt; cvar.gcd(10,4)
-ans = 2
-octave:3&gt; some_vars = cvar;
-octave:4&gt; some_vars.Foo
-ans = 3
-</pre></div>
-
-<p>
Modules can also be loaded from within functions, even before being loaded in the base context.
If the module is also used in the base context, however, it must first be loaded again:
</p>