Talk:D (programming language): Difference between revisions

Content deleted Content added
SineBot (talk | contribs)
Line 47:
 
Unfortunately I don't have a D compiler installed on my computer, so I cannot check this myself. <span style="font-size: smaller;" class="autosigned">—Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/67.168.77.169|67.168.77.169]] ([[User talk:67.168.77.169|talk]]) 08:16, 6 November 2010 (UTC)</span><!-- Template:UnsignedIP --> <!--Autosigned by SineBot-->
 
:The code indeed compiles. I think that the idea is that nested functions have a hidden argument - a pointer to their enclosing scope (main's local variables). However, that doesn't explain why the code continues to compile when pivot is moved outside main(), or if you add a call to a non-pure function in mySum - these sound like compiler bugs. --[[User:CyberShadow|Vladimir]] ([[User talk:CyberShadow|talk]]) 11:45, 6 November 2010 (UTC)