Maple für Professional
Maple für Akademiker
Maple für Studenten
Maple Personal Edition
Maple Player
Maple Player für iPad
MapleSim für Professional
MapleSim für Akademiker
Maple T.A. - Testen & beurteilen
Maple T.A. MAA Placement Test Suite
Möbius - Online-Courseware
Machine Design / Industrial Automation
Luft- und Raumfahrt
Fahrzeugtechnik
Robotics
Energiebranche
System Simulation and Analysis
Model development for HIL
Anlagenmodelle für den Regelungsentwurf
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematikausbildung
Technik
Allgemein- und berufsbildende Schulen
Testen und beurteilen
Studierende
Finanzmodelle
Betriebsforschung
Hochleistungsrechnen
Physik
Live-Webinare
Aufgezeichnete Webinare
Geplante Veranstaltungen
MaplePrimes
Maplesoft-Blog
Maplesoft-Mitgliedschaft
Maple Ambassador Program
MapleCloud
Technische Whitepapers
E-Mail Newsletters
Maple-Bücher
Math Matters
Anwendungs-Center
MapleSim Modell-Galerie
Anwenderberichte
Exploring Engineering Fundamentals
Lehrkonzepte mit Maple
Maplesoft Welcome-Center
Resource-Center für Lehrer
Help-Center für Studierende
モジュールにおける大域変数
使い方
global glo1, glo2, ...;
パラメータ
glo1, glo2, ... - 1 個以上の大域変数名
説明
モジュールの定義は1個以上の大域変数の宣言を含んでいても構いません。手続きにおける大域変数と同様です。それぞれの式 gloi(i=1,2,...) は symbol である必要があります。
モジュール定義中の任意の場所で行われた大域変数の(代入による)変更は、その変更を実行した以降においては、大域的な影響を及ぼすことになります。モジュールの本体は、そのモジュール定義が評価された時(実装中)に実行されますが、(外部)手続きの本体はそれが呼ばれた時に実行されるということを注意しておきます。
ある変数を、そのモジュールにおける大域変数であると宣言すると、暗黙の通用規則によってそれを暗黙の局所変数だと解釈することが無くなります。暗黙の通用規則によって、暗黙の局所変数として扱われることが無いとしても、大域変数は常に厳格に宣言すべきものなのです。
参照
module, module[export], module[local], procedure
Download Help Document