about summary refs log tree commit diff stats
path: root/html/054static_dispatch.cc.html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-07-08 21:34:52 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-07-08 21:34:52 -0700
commit9e32e4736dc12479e3855e8d29ba7ecb6ac50ff6 (patch)
tree0fb382ddb830843b0993da27ff24900c59f18b60 /html/054static_dispatch.cc.html
parent0f0be736fbe118612ad0b8f2bd84c2e7f4c35ade (diff)
downloadmu-9e32e4736dc12479e3855e8d29ba7ecb6ac50ff6.tar.gz
3963
Narrow the scope of implicit type conversions. Now only numbers can be
freely converted to from other scalars (booleans, characters). We want
in particular to make this an error:

  x:character <- new [abc]
Diffstat (limited to 'html/054static_dispatch.cc.html')
-rw-r--r--html/054static_dispatch.cc.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/html/054static_dispatch.cc.html b/html/054static_dispatch.cc.html
index 25a0a461..9112499b 100644
--- a/html/054static_dispatch.cc.html
+++ b/html/054static_dispatch.cc.html
@@ -357,7 +357,7 @@ if ('onhashchange' in window) {
 <span id="L292" class="LineNr">292 </span><span class="Delimiter">}</span>
 <span id="L293" class="LineNr">293 </span>
 <span id="L294" class="LineNr">294 </span><span class="Normal">bool</span> <a href='054static_dispatch.cc.html#L294'>types_strictly_match_except_literal_against_address_or_boolean</a><span class="Delimiter">(</span><span class="Normal">const</span> reagent&amp; to<span class="Delimiter">,</span> <span class="Normal">const</span> reagent&amp; from<span class="Delimiter">)</span> <span class="Delimiter">{</span>
-<span id="L295" class="LineNr">295 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span>is_literal<span class="Delimiter">(</span>from<span class="Delimiter">)</span> &amp;&amp; <a href='021check_instruction.cc.html#L217'>is_mu_boolean</a><span class="Delimiter">(</span>to<span class="Delimiter">))</span>
+<span id="L295" class="LineNr">295 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span>is_literal<span class="Delimiter">(</span>from<span class="Delimiter">)</span> &amp;&amp; <a href='021check_instruction.cc.html#L224'>is_mu_boolean</a><span class="Delimiter">(</span>to<span class="Delimiter">))</span>
 <span id="L296" class="LineNr">296 </span>  <span class="Conceal">¦</span> <span class="Identifier">return</span> from<span class="Delimiter">.</span>name == <span class="Constant">&quot;0&quot;</span> || from<span class="Delimiter">.</span>name == <span class="Constant">&quot;1&quot;</span><span class="Delimiter">;</span>
 <span id="L297" class="LineNr">297 </span>  <span class="Comment">// Match Literal Zero Against Address {</span>
 <span id="L298" class="LineNr">298 </span>  <span class="Normal">if</span> <span class="Delimiter">(</span>is_literal<span class="Delimiter">(</span>from<span class="Delimiter">)</span> &amp;&amp; is_mu_address<span class="Delimiter">(</span>to<span class="Delimiter">))</span>