Re: Forward reference to included function
- Posted by _tom (admin) Jan 13, 2014
- 1651 views
Another nuance on the term "introduce":
-- example1.ex object x -- variable x has been 'declared' ? x -- produces error message: --> variable x has not been assigned a value -- that means variable x has not been "introduced" (since two steps needed...declare and assign)
-- example2.ex object x --....various lines of code x = 10 -- > variable has now been "introduced" -- from now to end of file you can use the variable ? x -- displays value
The term "introduce" describes the exact spot from where a variable may be used.
_tom