Jump to content

Include a file: Difference between revisions

Added Vala Code
(Added Vala Code)
Line 221:
==={{header|C Shell}}===
<lang csh>source myfile.csh</lang>
 
=={{header|Vala}}==
Importing/including is done during compilation. For example, to compile the program called "maps.vala" with the package "gee":
<pre>
valac maps.vala --pkg gee-1.0
</pre>
 
Functions can be called then using Gee.<function> calls:
<lang vala>
var map = new Gee.HashMap<string, int> ();
</lang>
 
or with a using statement:
<lang vala>
using Gee;
 
var map = new HashMap<string, int>();
</lang>
 
=={{header|ZX Spectrum Basic}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.