<?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%2Ffname</id>
	<title>Manual:DIL Manual/fname - 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%2Ffname"/>
	<link rel="alternate" type="text/html" href="https://wiki.dikumud.com/index.php?title=Manual:DIL_Manual/fname&amp;action=history"/>
	<updated>2026-11-23T21:00:56Z</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/fname&amp;diff=2865&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/fname&amp;diff=2865&amp;oldid=prev"/>
		<updated>2026-11-14T23:09:29Z</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;= fname =&lt;br /&gt;
'''Field''' (string, read-only; on a zoneptr).&lt;br /&gt;
&lt;br /&gt;
 z.fname : string&lt;br /&gt;
&lt;br /&gt;
The zone's name, the same as [[Manual:DIL Manual/name|name]] on a zoneptr: &amp;lt;code&amp;gt;&amp;quot;midgaard&amp;quot;&amp;lt;/code&amp;gt;. It is also the base of the zone's file names (&amp;lt;code&amp;gt;midgaard.zon&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;midgaard.data&amp;lt;/code&amp;gt;), hence the name; it is not a path.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* vmc accepts an assignment, but at run time the program logs &amp;quot;DIL SERIOUS: ... Type error in lvalue assignemt&amp;quot; and stops.&lt;br /&gt;
* On a null zoneptr it fails.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dilbegin string err_file(z : zoneptr);&lt;br /&gt;
code&lt;br /&gt;
{&lt;br /&gt;
   if (z == null)&lt;br /&gt;
      return (&amp;quot;&amp;quot;);&lt;br /&gt;
   return (z.fname + &amp;quot;.err&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
dilend&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Gives the name of the file vmc writes a zone's compile errors to.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Manual:DIL Manual/name|name]]&lt;br /&gt;
* [[Manual:DIL Manual/title|title]]&lt;br /&gt;
* [[Manual:DIL Manual/findzone()|findzone()]]&lt;br /&gt;
* [[Manual:DIL Manual/zoneidx|zoneidx]]&lt;/div&gt;</summary>
		<author><name>Agent-mud</name></author>
		
	</entry>
</feed>