<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-5783184094166463434.post4842995466937195180..comments</id><updated>2011-12-06T09:30:10.035+01:00</updated><category term='tools'/><category term='0.7.12'/><category term='arguments'/><category term='jscc'/><category term='IE9'/><category term='Jangaroo 0.7'/><category term='import'/><category term='ActionScript'/><category term='ECMAScript'/><category term='TheFlexShow'/><category term='WebKit'/><category term='parameter default values'/><category term='IDE'/><category term='demo'/><category term='Konqueror'/><category term='Jangaron 0.54'/><category term='presentation'/><category term='chrome'/><category term='Flash'/><category term='IDEA 8'/><category term='FlexUnit'/><category term='Rhino'/><category term='Flex Builder'/><category term='Safari'/><category term='JsUnit'/><category term='Flex'/><category term='canvas'/><category term='HTML5'/><category term='Object'/><category term='paper'/><category term='Adobe'/><category term='Jangaroo 0.1.1'/><category term='Jangaroo 0.3.1'/><category term='KHTML'/><category term='JSC'/><category term='Jangaroo IDEA plugin'/><category term='private members'/><category term='Jangaroo'/><category term='rest parameter'/><category term='jooflash'/><category term='jooc'/><category term='compile'/><category term='Jangaroo discussion groups users developers'/><category term='google chrome'/><category term='Open Source'/><category term='programming in the large'/><category term='Jangaroo Libraries'/><category term='interview'/><category term='Enterprise'/><category term='Jangaroo 0.3'/><category term='iPhone'/><category term='Array'/><category term='Jangaroo maven plugin'/><category term='FDT'/><category term='Jangaron'/><category term='browser compatibility'/><category term='FalconJS'/><category term='jscdoc'/><category term='FD'/><category term='release'/><category term='JavaScript'/><title type='text'>Comments on Jangaroo: Simulating ActionScript in JavaScript: Private Mem...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.jangaroo.net/feeds/4842995466937195180/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5783184094166463434/4842995466937195180/comments/default'/><link rel='alternate' type='text/html' href='http://blog.jangaroo.net/2011/11/simulating-actionscript-in-javascript.html'/><author><name>Masiar</name><uri>http://www.blogger.com/profile/05843444480065721143</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5783184094166463434.post-8094274517284346905</id><published>2011-12-06T09:30:10.035+01:00</published><updated>2011-12-06T09:30:10.035+01:00</updated><title type='text'>The &lt;a href="http://blog.jangaroo.net/2011/12/simu...</title><content type='html'>The &lt;a href="http://blog.jangaroo.net/2011/12/simulating-actionscript-in-javascript.html" rel="nofollow"&gt;follow-up post about untyped private member access&lt;/a&gt; is online now!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5783184094166463434/4842995466937195180/comments/default/8094274517284346905'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5783184094166463434/4842995466937195180/comments/default/8094274517284346905'/><link rel='alternate' type='text/html' href='http://blog.jangaroo.net/2011/11/simulating-actionscript-in-javascript.html?showComment=1323160210035#c8094274517284346905' title=''/><author><name>Frank</name><uri>http://www.blogger.com/profile/07941551987898697351</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://2.bp.blogspot.com/_Cm0MGDqn_BU/STVsfEyGJ-I/AAAAAAAAABo/sF__vYkc4sE/S220/Wienberg56+(grey).JPG'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jangaroo.net/2011/11/simulating-actionscript-in-javascript.html' ref='tag:blogger.com,1999:blog-5783184094166463434.post-4842995466937195180' source='http://www.blogger.com/feeds/5783184094166463434/posts/default/4842995466937195180' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1716006696'/></entry><entry><id>tag:blogger.com,1999:blog-5783184094166463434.post-4095573417861625243</id><published>2011-12-04T23:42:03.073+01:00</published><updated>2011-12-04T23:42:03.073+01:00</updated><title type='text'>Bernd,
I hope I didn&amp;#39;t miss the point of your ...</title><content type='html'>Bernd,&lt;br /&gt;I hope I didn&amp;#39;t miss the point of your question, but Jangaroo does &lt;i&gt;not&lt;/i&gt; try to catch private member access violations at runtime. As said in the blog post, the reason to rename private members is to avoid name clashes, and all renaming is done at compile time.&lt;br /&gt;However, you spotted an issue I skipped in the blog post: What about untyped access to private members? How can the Jangaroo compiler rename access to a private member, if the expression to the left of the dot is untyped?&lt;br /&gt;Since the answer is rather long, I am already working on a follow-up blog post.&lt;br /&gt;The idea you mention to generate different code for debug and release builds is already implemented in Jangaroo. We provide a built-in assert() function that is interpreted by the compiler: If assertions are disabled (using a compiler flag you could set when creating release builds), assert() function calls are completely suppressed in the generated code. So if there were any runtime checks for private member access (which, as said above, is not the case), they could be treated similarily.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5783184094166463434/4842995466937195180/comments/default/4095573417861625243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5783184094166463434/4842995466937195180/comments/default/4095573417861625243'/><link rel='alternate' type='text/html' href='http://blog.jangaroo.net/2011/11/simulating-actionscript-in-javascript.html?showComment=1323038523073#c4095573417861625243' title=''/><author><name>Frank</name><uri>http://www.blogger.com/profile/07941551987898697351</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://2.bp.blogspot.com/_Cm0MGDqn_BU/STVsfEyGJ-I/AAAAAAAAABo/sF__vYkc4sE/S220/Wienberg56+(grey).JPG'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jangaroo.net/2011/11/simulating-actionscript-in-javascript.html' ref='tag:blogger.com,1999:blog-5783184094166463434.post-4842995466937195180' source='http://www.blogger.com/feeds/5783184094166463434/posts/default/4842995466937195180' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1716006696'/></entry><entry><id>tag:blogger.com,1999:blog-5783184094166463434.post-7266168798175422949</id><published>2011-12-04T02:58:40.098+01:00</published><updated>2011-12-04T02:58:40.098+01:00</updated><title type='text'>This is all very interesting. Thanks for sharing t...</title><content type='html'>This is all very interesting. Thanks for sharing those details! The way Jangaroo hides private members is crafty. But I am wondering: Shouldn&amp;#39;t most access violations due to accessing private members be caught at compile time? In theory the only reason for checking access violations at runtime is because of untyped code, i.e. assuming that foo() is a private method of Sprite:&lt;br /&gt;&lt;br /&gt;var sprite: Sprite = new Sprite();&lt;br /&gt;var spriteObj : Object = sprite;&lt;br /&gt;spriteObj.foo();&lt;br /&gt;&lt;br /&gt;I am simply wondering: Shall Jangaroo care about those cases? I think so. But in my opinion Jangaroo should only care about access violations debug builds. In release builds I would not use any code that checks against access violations.&lt;br /&gt;That is what I call the &amp;quot;dart rules&amp;quot;. Please see this blog post if you are interested in the details and let me know what you think:&lt;br /&gt;http://blogs.adobe.com/bparadie/2011/11/16/dart-and-types-tennis-without-a-net/</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5783184094166463434/4842995466937195180/comments/default/7266168798175422949'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5783184094166463434/4842995466937195180/comments/default/7266168798175422949'/><link rel='alternate' type='text/html' href='http://blog.jangaroo.net/2011/11/simulating-actionscript-in-javascript.html?showComment=1322963920098#c7266168798175422949' title=''/><author><name>Bernd Paradies</name><uri>http://blogs.adobe.com/bparadie/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jangaroo.net/2011/11/simulating-actionscript-in-javascript.html' ref='tag:blogger.com,1999:blog-5783184094166463434.post-4842995466937195180' source='http://www.blogger.com/feeds/5783184094166463434/posts/default/4842995466937195180' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2050503969'/></entry></feed>
