<div dir="ltr">Thanks, Slava!</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 24, 2017 at 3:05 PM, Slava Pestov <span dir="ltr">&lt;<a href="mailto:spestov@apple.com" target="_blank">spestov@apple.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><br><div><br><blockquote type="cite"><div>On Oct 24, 2017, at 3:05 PM, Nate Birkholz via swift-users &lt;<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>&gt; wrote:</div><br class="m_2175964920782893196Apple-interchange-newline"><div><div dir="ltr">Doing a tutorial from RayWenderlich. <a href="https://www.raywenderlich.com/125313/make-game-like-candy-crush-spritekit-swift-part-4" target="_blank">https://www.<wbr>raywenderlich.com/125313/make-<wbr>game-like-candy-crush-<wbr>spritekit-swift-part-4</a><div><br></div><div>I have four bool values: topLeft, bottomLeft, <wbr>topRight, and bottomRight<br></div><div><div><br></div><div>the following line throws an error: </div><div>let value = Int(topLeft.hashValue) | Int(topRight.hashValue) &lt;&lt; 1 | Int(bottomLeft.hashValue) &lt;&lt; 2 | Int(bottomRight.hashValue) &lt;&lt; 3<br></div></div></div></div></blockquote><div><br></div>yeah,</div><div><br></div><div>let value1 = Int(topRight.hashValue) &lt;&lt; 1</div><div>let value2 = Int(bottomLeft.hashValue) &lt;&lt; 2</div><div>let value3 = Int(bottomRight.hashValue) &lt;&lt; 3</div><div><br></div><div>let value = Int(topLeft.hashValue) | value1 | value2 | value3</div><div><br></div><div><blockquote type="cite"><div><div dir="ltr"><div><div><div><br></div><div>&quot;Expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions.&quot;<br></div><div><br></div><div>This seems like a bug in the compiler, no? Is there actually a way to break that up? </div></div></div></div></div></blockquote><div><br></div>This is a known issue that got worse with the new integer oriented protocols, especially with shifts.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Slava</div><div><br><blockquote type="cite"><div><div dir="ltr"><div><div><div><div><br></div>-- <br><div class="m_2175964920782893196gmail_signature">Nate Birkholz</div>
</div></div></div></div>
______________________________<wbr>_________________<br>swift-users mailing list<br><a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-users" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-users</a><br></div></blockquote></div><br></font></span></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Nate Birkholz</div>
</div>