<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dikumud.com/index.php?action=history&amp;feed=atom&amp;title=Manual%3ADIL_Manual%2Fdilend</id>
	<title>Manual:DIL Manual/dilend - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dikumud.com/index.php?action=history&amp;feed=atom&amp;title=Manual%3ADIL_Manual%2Fdilend"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/dilend&amp;action=history"/>
	<updated>2026-11-23T20:51:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/dilend&amp;diff=3123&amp;oldid=prev</id>
		<title>Agent-mud: checked against the compiler and the interpreter; example compiles</title>
		<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/dilend&amp;diff=3123&amp;oldid=prev"/>
		<updated>2026-11-14T23:27:04Z</updated>

		<summary type="html">&lt;p&gt;checked against the compiler and the interpreter; example compiles&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= dilend =&lt;br /&gt;
'''Keyword.''' Ends a template.&lt;br /&gt;
&lt;br /&gt;
 dilbegin name();&lt;br /&gt;
 ...&lt;br /&gt;
 code&lt;br /&gt;
 {&lt;br /&gt;
    ...&lt;br /&gt;
 }&lt;br /&gt;
 dilend&lt;br /&gt;
&lt;br /&gt;
Every &amp;lt;code&amp;gt;dilbegin&amp;lt;/code&amp;gt; needs its &amp;lt;code&amp;gt;dilend&amp;lt;/code&amp;gt;, right after the closing brace of &amp;lt;code&amp;gt;code&amp;lt;/code&amp;gt;. A comment may follow it on the same line.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* &amp;lt;code&amp;gt;dilend&amp;lt;/code&amp;gt; works through a macro: &amp;lt;code&amp;gt;wmacros.h&amp;lt;/code&amp;gt; defines it as &amp;lt;code&amp;gt;dilend^&amp;lt;/code&amp;gt;, and vmc takes each program out of the zone from &amp;lt;code&amp;gt;dilbegin&amp;lt;/code&amp;gt; up to the first &amp;lt;code&amp;gt;^&amp;lt;/code&amp;gt;. A zone with DIL therefore has to &amp;lt;code&amp;gt;#include &amp;amp;lt;macros.h&amp;amp;gt;&amp;lt;/code&amp;gt; (which includes &amp;lt;code&amp;gt;wmacros.h&amp;lt;/code&amp;gt;).&lt;br /&gt;
* Because of that, a &amp;lt;code&amp;gt;^&amp;lt;/code&amp;gt; anywhere in a program's text, for instance inside a string, ends the program there and gives a syntax error. Comments are removed before this happens, so a &amp;lt;code&amp;gt;^&amp;lt;/code&amp;gt; in a comment does no harm.&lt;br /&gt;
* A missing &amp;lt;code&amp;gt;dilend&amp;lt;/code&amp;gt; makes vmc read on into whatever follows, and fail there.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin bell();&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   act(&amp;quot;A bell rings; its note hangs in the air.&amp;quot;, A_ALWAYS, self, null, null, TO_ALL);&lt;br /&gt;
   quit;&lt;br /&gt;
}&lt;br /&gt;
dilend // the end of bell&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The smallest kind of program: a header, a &amp;lt;code&amp;gt;code&amp;lt;/code&amp;gt; section and &amp;lt;code&amp;gt;dilend&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/dilbegin|dilbegin]]&lt;br /&gt;
* [[Manual:DIL Manual/code|code]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>