Re: Forward reference to included function

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu