<html><head><style type="text/css" media="screen">Body{font-family: Verdana;font-size:.75em;}h4{font-size:.9em;}a{color: #3a62a6;}.digest .toc {margin-bottom: 15px; padding-bottom:8px; border-bottom: 1px solid #ccc;}.digest .tocItem {margin-bottom: 15px;}.tocItem a{color:#000;text-decoration: none;}.tocItem a:hover{color: #3a62a6;text-decoration: underline;}.topic{padding-bottom: 8px;margin-bottom: 20px; border-bottom: 1px solid #ccc;}.topicHeader{margin-bottom:10px;}.topicTitle{font-weight: bold;}.replies p{margin:0;padding:0;}.replies hr{width: 15%;text-align: left;margin: 0 auto 5px 0;border: none 0;border-top: 1px solid #ccc;height: 1px;}.reply{margin-bottom: 6px;padding-bottom: 4px;}.anchorMarker{color: #3a62a6;}.footer{color: gray;}</style></head><body><div class="digest"><p>Hi ironpython,</p><p>Here's your Daily Digest of new issues for project "<a href="http://ironpython.codeplex.com/">IronPython</a>".</p><p>In today's digest:</p><h4>ISSUES</h4><div class="toc"><div class="tocItem"><a href="#toc_issue_1">1. <span class="tocTitle">[New issue] &#91;windows phone&#93; passing parameters to functions</span>&nbsp;<span class="anchorMarker">&darr;</span></a></div><div class="tocItem"><a href="#toc_issue_2">2. <span class="tocTitle">[New comment] &#91;windows phone&#93; passing parameters to functions</span>&nbsp;<span class="anchorMarker">&darr;</span></a></div><div class="tocItem"><a href="#toc_issue_3">3. <span class="tocTitle">[New comment] &#91;windows phone&#93; passing parameters to functions</span>&nbsp;<span class="anchorMarker">&darr;</span></a></div></div><h4>ISSUES</h4><div class="topic"><a name="toc_issue_1"></a><div class="topicHeader"><span class="topicTitle">1. [New issue] &#91;windows phone&#93; passing parameters to functions</span> <a href="http://ironpython.codeplex.com/workitem/32703">view online</a></div><p>User oxcsnicho has proposed the issue:</p><p>"I actually encountered another issue &#40;in addition to the 2&#43;2.5 one that is being discovered in March, found that in archives&#41; that seem to be a big issue for my porting work. It looks that passing parameters in functions does not work currently. Say, you can do the following&#58;<br /><br />&#62;&#62;&#62; def Four&#40;&#41;&#58;<br />...  print 2&#43;2<br />...<br />&#62;&#62;&#62; Four&#40;&#41;<br />4<br /><br />but you cannot do this&#58;<br /><br />&#62;&#62;&#62; def PlusFour&#40;n&#41;<br />...  print 2&#43;2&#43;n<br />...<br />&#62;&#62;&#62; Four &#40;10&#41;<br />Attempt to access the method failed&#58;<br />IronPython.Runtime.PythonFunction<br />&#43;FunctionCaller&#96;1.Call1<br />&#40;System.Runtime.CompilerServices.CallSite,<br />IronPython.Runtime.CodeContext, System.Object,<br />System.Object&#41;<br /><br />The C&#35; code I was using is simple&#58;<br /><br />1.create an empty WP7.1 project&#59;<br />2.create correct reference &#40;make sure when you include the dll, you set the CopyLocal property to True&#41;<br />3. in MainPage.xaml.cs, do the following<br />&#42;&#42; a&#58; add using<br /><br />using Microsoft.Scripting.Hosting&#59;<br /><br />&#42;&#42; b&#58; initialize the engine in MainPage&#40;&#41; constructor&#58;<br /><br />private ScriptEngine _engine &#61; null&#59;<br />public MainPage&#40;&#41;<br />&#123;<br />    InitializeComponent&#40;&#41;&#59;<br />    _engine &#61; IronPython.Hosting.Python.CreateEngine&#40;&#41;&#59;<br />&#125;<br /><br />&#42;&#42; c&#58; execute the engine against above script&#58;<br /><br />    _engine.Execute&#40;scriptInputBox.Text&#41;&#59;"</p></div><div class="topic"><a name="toc_issue_2"></a><div class="topicHeader"><span class="topicTitle">2. [New comment] &#91;windows phone&#93; passing parameters to functions</span> <a href="http://ironpython.codeplex.com/workitem/32703">view online</a></div><p>User oxcsnicho has commented on the issue:</p><p>"attached the project that I have been using"</p></div><div class="topic"><a name="toc_issue_3"></a><div class="topicHeader"><span class="topicTitle">3. [New comment] &#91;windows phone&#93; passing parameters to functions</span> <a href="http://ironpython.codeplex.com/workitem/32703">view online</a></div><p>User slide_o_mix has commented on the issue:</p><p>"I may be able to play around with this now, I just bought a Windows Phone and would like to have IronPython running on it for various reasons."</p></div><div class="footer"><p>You are receiving this email because you subscribed to notifications on CodePlex.</p><p>To report a bug, request a feature, or add a comment, visit <a href="http://ironpython.codeplex.com/workitem/list/basic">IronPython Issue Tracker</a>. You can <a href="https://ironpython.codeplex.com/subscriptions/workitem/project/edit">unsubscribe or change your issue notification settings</a> on CodePlex.com.</p></div></div></body></html>