Include a file: Difference between revisions
Content added Content deleted
(Added Vala Code) |
|||
Line 221: | Line 221: | ||
==={{header|C Shell}}=== |
==={{header|C Shell}}=== |
||
<lang csh>source myfile.csh</lang> |
<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}}== |
=={{header|ZX Spectrum Basic}}== |