Include a file: Difference between revisions

→‎{{header|Wren}}: Code partly rewritten.
m (syntax highlighting fixup automation)
(→‎{{header|Wren}}: Code partly rewritten.)
 
(One intermediate revision by one other user not shown)
Line 1,734:
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|LabVIEW}}==
<syntaxhighlight lang="lasso">web_response -> include('my_file.inc')</syntaxhighlight>
 
=={{header|Lang}}==
<syntaxhighlight lang="lang">
# Execute and copy variables defined in code.lang only
ln.bindLibrary(code.lang)
 
# Execute and copy translations defined in code.lang only
ln.link(code.lang)
 
# Execute and copy variables and translations defined in code.lang
ln.include(code.lang)
</syntaxhighlight>
 
=={{header|Lasso}}==
Line 2,477 ⟶ 2,489:
 
Here's a simple example.
<syntaxhighlight lang="ecmascriptwren">import "./fmt" for Fmt // imports the Fmt module and makes the 'Fmt' class available
import "./math" for Int Math // imports the Math module and makes the 'IntMath' class available
 
Fmt.print("The maximumvalue safeof integer'e' into Wren6 d.p. is $,df.", IntMath.maxSafee)</syntaxhighlight>
 
{{out}}
<pre>
The maximumvalue safeof integer'e' into Wren6 d.p. is 9,007,199,254,740,9912.718282.
</pre>
 
9,476

edits