EconPapers    
Economics at your fingertips  
 

Variables, Constants, Scopes, and Modules

Clemens Heitzinger ()
Additional contact information
Clemens Heitzinger: Technische Universität Wien, Center for Artificial Intelligence and Machine Learning (CAIML) and Department of Mathematics and Geoinformation

Chapter Chapter 3 in Algorithms with JULIA, 2022, pp 39-49 from Springer

Abstract: Abstract This chapter discusses how to introduce global and local variables and constants as well as their scopes or visibility. While discussing functions, we have seen that function arguments become local variables in the function body, but there are more ways to introduce variables. Local variables are only visible in (small) parts of a program, which is an important property to structure a program into small, understandable parts. Global variables are only visible in their module. A module is a (usually large) part of a program that contains functions, variables, and constants with a similar purpose. The scopes of variables follow rules that are described in detail.

Date: 2022
References: Add references at CitEc
Citations:

There are no downloads for this item, see the EconPapers FAQ for hints about obtaining it.

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:spr:sprchp:978-3-031-16560-3_3

Ordering information: This item can be ordered from
http://www.springer.com/9783031165603

DOI: 10.1007/978-3-031-16560-3_3

Access Statistics for this chapter

More chapters in Springer Books from Springer
Bibliographic data for series maintained by Sonal Shukla () and Springer Nature Abstracting and Indexing ().

 
Page updated 2026-05-12
Handle: RePEc:spr:sprchp:978-3-031-16560-3_3