Include a file: Difference between revisions

Content added Content deleted
(julia)
Line 398: Line 398:
Julia's <code>include</code> function executes code from an arbitrary file:
Julia's <code>include</code> function executes code from an arbitrary file:
<lang Julia>include("foo.jl")</lang>
<lang Julia>include("foo.jl")</lang>
or alternatively <code>include_string</code> executes code in a string as if it were a file (and can optionally accept a filename to use in error messages etcetera).


Julia also has a module system:
Julia also has a module system:
Line 404: Line 405:
<lang Julia>using MyModule</lang>
<lang Julia>using MyModule</lang>
will import the module and all of its exported symbols
will import the module and all of its exported symbols



=={{header|LabVIEW}}==
=={{header|LabVIEW}}==