<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to keywords-readonly</title><link>https://sourceforge.net/p/asil/wiki/keywords-readonly/</link><description>Recent changes to keywords-readonly</description><atom:link href="https://sourceforge.net/p/asil/wiki/keywords-readonly/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 20 Feb 2014 18:58:02 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/asil/wiki/keywords-readonly/feed" rel="self" type="application/rss+xml"/><item><title>keywords-readonly modified by Will Pittenger</title><link>https://sourceforge.net/p/asil/wiki/keywords-readonly/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Marks a &lt;strong&gt;&lt;a class="" href="/p/asil/wiki/keywords-var/"&gt;var&lt;/a&gt;&lt;/strong&gt; or &lt;strong&gt;&lt;a class="" href="../keywords-typealias"&gt;typealias&lt;/a&gt;&lt;/strong&gt; as read only.  Anything &lt;strong&gt;readonly&lt;/strong&gt; can be initialized, but then never changed again as long as they remain in scope.  If the item is a reference type, &lt;strong&gt;readonly&lt;/strong&gt; only has an effect on the &lt;u&gt;outermost&lt;/u&gt; reference whereas &lt;strong&gt;&lt;a class="" href="/p/asil/wiki/keywords-const/"&gt;const&lt;/a&gt;&lt;/strong&gt; would only have an effect on what the reference &lt;u&gt;points&lt;/u&gt; to.  If the item is a by-value type, &lt;strong&gt;readonly&lt;/strong&gt; is the same as &lt;strong&gt;&lt;a class="" href="/p/asil/wiki/keywords-const/"&gt;const&lt;/a&gt;&lt;/strong&gt; when combined with &lt;strong&gt;&lt;a class="" href="../keywords"&gt;var&lt;/a&gt;&lt;/strong&gt;.  Variables of type &lt;strong&gt;&lt;a class="" href="/p/asil/wiki/keywords-expression/"&gt;expression&lt;/a&gt;&lt;/strong&gt; can't be made &lt;strong&gt;readonly&lt;/strong&gt;.&lt;/p&gt;
&lt;h2 id="variables"&gt;Variables&lt;/h2&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;\var\ [\readonly\] [\const\] [(\ref\ | \byvalue\)] /TypeDescriptor/ /identifier/ [\=\ /Value/]
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;For more on what /TypeDescriptor/ can be, see &lt;a class="" href="../Appendices-Terms-Type%20descriptors"&gt;Type descriptors&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id="type-aliases"&gt;Type aliases&lt;/h2&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;\typealias\ [\readonly\] [\const\] [(\ref\ | \byvalue\)] /TypeDescriptor/ /identifier/
&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Will Pittenger</dc:creator><pubDate>Thu, 20 Feb 2014 18:58:02 -0000</pubDate><guid>https://sourceforge.netb36976c210844d83f8a74621e96ecd2f10c674fc</guid></item></channel></rss>