Include a file: Difference between revisions
Content added Content deleted
(→{{header|D}}: Add Déjà Vu example) |
(julia) |
||
Line 394: | Line 394: | ||
{{libheader|jQuery}} |
{{libheader|jQuery}} |
||
<lang javascript>$.getScript("http://example.com/script.js");</lang> |
<lang javascript>$.getScript("http://example.com/script.js");</lang> |
||
=={{header|Julia}}== |
|||
Julia's <code>include</code> function executes code from an arbitrary file: |
|||
<lang Julia>include("foo.jl")</lang> |
|||
Julia also has a module system: |
|||
<lang Julia>import MyModule</lang> |
|||
imports the content of the module <code>MyModule.jl</code> (which should be of the form <code>module MyModule ... end</code>, whose symbols can be accessed as <code>MyModule.variable</code>, or alternatively |
|||
<lang Julia>using MyModule</lang> |
|||
will import the module and all of its exported symbols |
|||
=={{header|LabVIEW}}== |
=={{header|LabVIEW}}== |
||
In LabVIEW, any VI can be used as a "SubVI" by changing the icon and wiring the terminals to the front panel. This cannot be explained concisely in code; instead, see the [http://zone.ni.com/reference/en-XX/help/371361E-01/lvconcepts/creating_subvis/ documentation]. |
In LabVIEW, any VI can be used as a "SubVI" by changing the icon and wiring the terminals to the front panel. This cannot be explained concisely in code; instead, see the [http://zone.ni.com/reference/en-XX/help/371361E-01/lvconcepts/creating_subvis/ documentation]. |
||
=={{header|Lua}}== |
=={{header|Lua}}== |
||