<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://manual.dengine.net/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://manual.dengine.net/feed.php">
        <title>Doomsday Manual script:walkthrough</title>
        <description></description>
        <link>https://manual.dengine.net/</link>
        <image rdf:resource="https://manual.dengine.net/lib/tpl/dengine/images/favicon.ico" />
       <dc:date>2026-04-16T07:33:51+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://manual.dengine.net/script/walkthrough/basic_expressions?rev=1574227808&amp;do=diff"/>
                <rdf:li rdf:resource="https://manual.dengine.net/script/walkthrough/exceptions?rev=1574278176&amp;do=diff"/>
                <rdf:li rdf:resource="https://manual.dengine.net/script/walkthrough/functions?rev=1664252695&amp;do=diff"/>
                <rdf:li rdf:resource="https://manual.dengine.net/script/walkthrough/miscellaneous?rev=1574314767&amp;do=diff"/>
                <rdf:li rdf:resource="https://manual.dengine.net/script/walkthrough/operator_expressions?rev=1574245440&amp;do=diff"/>
                <rdf:li rdf:resource="https://manual.dengine.net/script/walkthrough/records?rev=1574537924&amp;do=diff"/>
                <rdf:li rdf:resource="https://manual.dengine.net/script/walkthrough/scopes?rev=1574672151&amp;do=diff"/>
                <rdf:li rdf:resource="https://manual.dengine.net/script/walkthrough/start?rev=1574160959&amp;do=diff"/>
                <rdf:li rdf:resource="https://manual.dengine.net/script/walkthrough/statements_and_compounds?rev=1574271017&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://manual.dengine.net/lib/tpl/dengine/images/favicon.ico">
        <title>Doomsday Manual</title>
        <link>https://manual.dengine.net/</link>
        <url>https://manual.dengine.net/lib/tpl/dengine/images/favicon.ico</url>
    </image>
    <item rdf:about="https://manual.dengine.net/script/walkthrough/basic_expressions?rev=1574227808&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-11-20T05:30:08+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>script:walkthrough:basic_expressions</title>
        <link>https://manual.dengine.net/script/walkthrough/basic_expressions?rev=1574227808&amp;do=diff</link>
        <description>Reference guide startOperator expressions
Basic expressions

Numbers and strings

All numbers are internally stored as 64-bit floats.
$ print 5, 5.5, -3.141592657
5 5.5 -3.14159
Hexadecimal numbers use the “0x” prefix.
$ print 0x100, 0X123
256 291
Underscores can be inserted in numbers at any points. This is only to improve readability for humans; the parser ignores them.</description>
    </item>
    <item rdf:about="https://manual.dengine.net/script/walkthrough/exceptions?rev=1574278176&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-11-20T19:29:36+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>script:walkthrough:exceptions</title>
        <link>https://manual.dengine.net/script/walkthrough/exceptions?rev=1574278176&amp;do=diff</link>
        <description>Statements and compoundsstartRecords
Exceptions

Try and catch

Like in C++, the try and catch keywords are used to begin blocks of code where exceptions can be thrown and processed.

If an exception is thrown outside try/catch, it will be  uncaught and execution of the script to be aborted.</description>
    </item>
    <item rdf:about="https://manual.dengine.net/script/walkthrough/functions?rev=1664252695&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-09-27T04:24:55+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>script:walkthrough:functions</title>
        <link>https://manual.dengine.net/script/walkthrough/functions?rev=1664252695&amp;do=diff</link>
        <description>RecordsstartScopes
Functions

A function is defined in the current scope using a def statement. def is a compound statement, so it must be either a single-line compound or end must be used in the end.
def func1(): pass

def func2()
end
The return statement is used to return a value from a function.</description>
    </item>
    <item rdf:about="https://manual.dengine.net/script/walkthrough/miscellaneous?rev=1574314767&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-11-21T05:39:27+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>script:walkthrough:miscellaneous</title>
        <link>https://manual.dengine.net/script/walkthrough/miscellaneous?rev=1574314767&amp;do=diff</link>
        <description>Scopesstart
Miscellaneous

Script return value

In certain circumstances, it is useful to return a value from the entire script itself, and not just from a function. For example, the argument to eval() is a script whose return value is returned to the caller.

The script return value is the final evaluated expression of the script.</description>
    </item>
    <item rdf:about="https://manual.dengine.net/script/walkthrough/operator_expressions?rev=1574245440&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-11-20T10:24:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>script:walkthrough:operator_expressions</title>
        <link>https://manual.dengine.net/script/walkthrough/operator_expressions?rev=1574245440&amp;do=diff</link>
        <description>Basic expressionsstartStatements and compounds
Operator expressions

Addition
$ print 'Numbers:', 1 + 1, -.5 + .5
Numbers: 2 0

$ print 'Larger than 32-bit:', \
  0xffffffffff + 0xffffffffff
Larger than 32-bit: 2.19902e+12

$ print 'Text:', 'Hello' + 'World'
Text: HelloWorld

$ print 'Array:', [1, 2, 3] + ['a', 'b', 'c']
Array: [ 1, 2, 3, a, b, c ]

$ print 'Dictionary:', \
  {1:2, 3:4} + {'a':'b', 'c':'d'}
Dictionary: { 1: 2, 3: 4, a: b, c: d }

$ print 'Time:', Time() + 3600
Time: 2019-11-19 2…</description>
    </item>
    <item rdf:about="https://manual.dengine.net/script/walkthrough/records?rev=1574537924&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-11-23T19:38:44+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>script:walkthrough:records</title>
        <link>https://manual.dengine.net/script/walkthrough/records?rev=1574537924&amp;do=diff</link>
        <description>ExceptionsstartFunctions
Records

Records are the foundation of Doomsday Script. Each namespace and module is a record, each object is a record, and classes are records, too.

The ownership model of records is that there is always a single owner for a record, and if that owner gets destroyed, all records owned by it will get destroyed, too. Many records are owned by native code (e.g., built-in modules like</description>
    </item>
    <item rdf:about="https://manual.dengine.net/script/walkthrough/scopes?rev=1574672151&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-11-25T08:55:51+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>script:walkthrough:scopes</title>
        <link>https://manual.dengine.net/script/walkthrough/scopes?rev=1574672151&amp;do=diff</link>
        <description>FunctionsstartMiscellaneous
Scopes

The following scopes (namespaces) are defined:

	*  Each module has its own global scope.
	*  Each function has its own local scope.
	*  In a class definition, the scope is the class namespace.

Global assignment

The global assignment := operator inserts variables to the module's global namespace.</description>
    </item>
    <item rdf:about="https://manual.dengine.net/script/walkthrough/start?rev=1574160959&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-11-19T10:55:59+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>script:walkthrough:start</title>
        <link>https://manual.dengine.net/script/walkthrough/start?rev=1574160959&amp;do=diff</link>
        <description></description>
    </item>
    <item rdf:about="https://manual.dengine.net/script/walkthrough/statements_and_compounds?rev=1574271017&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-11-20T17:30:17+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>script:walkthrough:statements_and_compounds</title>
        <link>https://manual.dengine.net/script/walkthrough/statements_and_compounds?rev=1574271017&amp;do=diff</link>
        <description>Operator expressionsstartExceptions
Statements and compounds

Structure

Statements normally end at a newline character, unless there is a backslash at the end of a line.
print 'Statement'

print \
  'Statement'
Semicolons can be used on one line to separate  statements.
print 'Statement 1.'; print 'Statement 2.'</description>
    </item>
</rdf:RDF>
