<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: variables, symbols and names in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/variables-symbols-and-names/m-p/903214#M106218</link>
    <description>&lt;P&gt;Maybe better:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
x=1;
Clear Symbols(x);

Name Expr(x);
Name Expr(y);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;x&lt;/FONT&gt; is a variable, better: a &lt;FONT face="courier new,courier"&gt;symbol&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;(can be cleared via &lt;FONT face="courier new,courier"&gt;clear symbols()&lt;/FONT&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In &lt;FONT face="courier new,courier"&gt;Name expr(x)&lt;/FONT&gt;, JMP takes thy NAME "x" [how knows if it's a &lt;FONT face="courier new,courier"&gt;symbol&lt;/FONT&gt;!], applies the rules:&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.jmp.com/support/help/en/19.0/#page/jmp/rules-for-resolving-names.shtml" target="_blank" rel="noopener noreferrer"&gt;https://www.jmp.com/support/help/en/19.0/#page/jmp/rules-for-resolving-names.shtml&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;, finds out that &lt;FONT face="courier new,courier"&gt;x&lt;/FONT&gt; is a symbol in the here namespace and returns the expression stored in this symbol.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In &lt;FONT face="courier new,courier"&gt;Name expr(y)&lt;/FONT&gt;, JMP takes thy NAME "&lt;FONT face="courier new,courier"&gt;y&lt;/FONT&gt;", applies the rules:&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.jmp.com/support/help/en/19.0/#page/jmp/rules-for-resolving-names.shtml" target="_blank" rel="noopener noreferrer"&gt;https://www.jmp.com/support/help/en/19.0/#page/jmp/rules-for-resolving-names.shtml&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;, doesn't find anything and returns the name.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Up to now, I thought,&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;means:&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;store the names in the here namespace.&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;But actually, names cannot be stored, they are just names?&lt;BR /&gt;So it is:&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;Look up the names in the here namespace&amp;nbsp; - [and if you don't specify a namespace, I will store the symbols there].&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;Who cares? Maybe understanding the original logic helps to better follow the logic ...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and if &lt;FONT face="courier new,courier"&gt;name expr()&lt;/FONT&gt; gets an expression as an argument that is different from a simple name, it just returns the expression?&lt;BR /&gt;always?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Sep 2025 04:42:32 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2025-09-24T04:42:32Z</dc:date>
    <item>
      <title>variables, symbols and names</title>
      <link>https://community.jmp.com/t5/Discussions/variables-symbols-and-names/m-p/903050#M106201</link>
      <description>&lt;P&gt;in JSL, what is the difference between a variable, a "symbol" and a "name"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;var=Expr(1+2);
Name Expr(var); // return the expression which is stored in the name "var" - so var is a name?
Clear Symbols(var); // how can I clear a "symbol" if it's actually a "name"&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Sep 2025 19:07:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/variables-symbols-and-names/m-p/903050#M106201</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-09-23T19:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: variables, symbols and names</title>
      <link>https://community.jmp.com/t5/Discussions/variables-symbols-and-names/m-p/903152#M106208</link>
      <description>&lt;P&gt;Hm, &lt;FONT face="courier new,courier"&gt;names&lt;/FONT&gt; are more than just variables.&lt;BR /&gt;e.g. If a &lt;FONT face="courier new,courier"&gt;name&lt;/FONT&gt; is followed by &lt;FONT face="courier new,courier"&gt;()&lt;/FONT&gt;, it's considered to be a &lt;FONT face="courier new,courier"&gt;function&lt;/FONT&gt;:&lt;BR /&gt;&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/19.0/#page/jmp/rules-for-resolving-names.shtml" target="_blank"&gt;https://www.jmp.com/support/help/en/19.0/#page/jmp/rules-for-resolving-names.shtml&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And to clear or delete it, again one has to consider it to be a symbol:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;f = function({}, print(hello));
Delete Symbols(f);
is empty(f)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Sep 2025 20:19:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/variables-symbols-and-names/m-p/903152#M106208</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-09-23T20:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: variables, symbols and names</title>
      <link>https://community.jmp.com/t5/Discussions/variables-symbols-and-names/m-p/903168#M106214</link>
      <description>&lt;P&gt;How to create a name:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class Families.jmp" );
	
x = Expr(sex);
Show(Type(Name Expr(x)),x);

x = Parse("sex");
Show(Type(Name Expr(x)),x);&lt;BR /&gt;&lt;BR /&gt;x = Parse(":sex");&lt;BR /&gt;Show(Type(Name Expr(x)),x);

x = As Name("sex");
Show(Type(Name Expr(x)),x);

Show(x[5])&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Sep 2025 21:54:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/variables-symbols-and-names/m-p/903168#M106214</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-09-23T21:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: variables, symbols and names</title>
      <link>https://community.jmp.com/t5/Discussions/variables-symbols-and-names/m-p/903214#M106218</link>
      <description>&lt;P&gt;Maybe better:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
x=1;
Clear Symbols(x);

Name Expr(x);
Name Expr(y);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;x&lt;/FONT&gt; is a variable, better: a &lt;FONT face="courier new,courier"&gt;symbol&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;(can be cleared via &lt;FONT face="courier new,courier"&gt;clear symbols()&lt;/FONT&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In &lt;FONT face="courier new,courier"&gt;Name expr(x)&lt;/FONT&gt;, JMP takes thy NAME "x" [how knows if it's a &lt;FONT face="courier new,courier"&gt;symbol&lt;/FONT&gt;!], applies the rules:&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.jmp.com/support/help/en/19.0/#page/jmp/rules-for-resolving-names.shtml" target="_blank" rel="noopener noreferrer"&gt;https://www.jmp.com/support/help/en/19.0/#page/jmp/rules-for-resolving-names.shtml&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;, finds out that &lt;FONT face="courier new,courier"&gt;x&lt;/FONT&gt; is a symbol in the here namespace and returns the expression stored in this symbol.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In &lt;FONT face="courier new,courier"&gt;Name expr(y)&lt;/FONT&gt;, JMP takes thy NAME "&lt;FONT face="courier new,courier"&gt;y&lt;/FONT&gt;", applies the rules:&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.jmp.com/support/help/en/19.0/#page/jmp/rules-for-resolving-names.shtml" target="_blank" rel="noopener noreferrer"&gt;https://www.jmp.com/support/help/en/19.0/#page/jmp/rules-for-resolving-names.shtml&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;, doesn't find anything and returns the name.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Up to now, I thought,&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;means:&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;store the names in the here namespace.&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;But actually, names cannot be stored, they are just names?&lt;BR /&gt;So it is:&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;Look up the names in the here namespace&amp;nbsp; - [and if you don't specify a namespace, I will store the symbols there].&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;Who cares? Maybe understanding the original logic helps to better follow the logic ...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and if &lt;FONT face="courier new,courier"&gt;name expr()&lt;/FONT&gt; gets an expression as an argument that is different from a simple name, it just returns the expression?&lt;BR /&gt;always?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 04:42:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/variables-symbols-and-names/m-p/903214#M106218</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-09-24T04:42:32Z</dc:date>
    </item>
  </channel>
</rss>

