note
blazar
<blockquote><i>please, could you give me a link explaining this magical unification? My fantasy fails to imagine lexicals as package-vars ... or what exactly do you mean with "lexical variables as package variables" ???</i></blockquote>
<p><em>I personally believe</em> that I may well be the least entitled person to give you any further piece of information. (For any incorrect, imprecise, misleading claim in this post I hope to stand corrected ASAP by the intervention of someone who's more knowledgeable than I am!) For one thing however, packages in Perl 6 are different beasts wrt to their Perl 5 equivalents: for example, typeglobs are gone forever... but IIRC there are more sound and relevant (for the sake of the issue we're discussing here) differences as well. I seem to remember having read, at some point, that lexical variables are nothing but package variables of a <em>magic</em> <c>::MY</c> package corresponding to the current lexical block. Of course, if all this has not changed, it must be somewhere within [http://dev.perl.org/perl6/architecture.html|Perl 6's docs].</p>
<p>OTOH I also wonder how all this can mix with <strong>the fact that we can have [http://dev.perl.org/perl6/doc/design/syn/S10.html#Packages|lexically scoped packages] too!</strong> (Declared with <c>my</c>, of course.) Again, if it's still true, then I would like <strong>both</strong> to see it backported to Perl 5, albeit, as I said, possibly only in terms of UI (well, if [id://489881|some more power] could be given <em>en passant</em> that would be not so bad, don't you think so?) <strong>and</strong> to see <em>how much</em> of it can be backported there, from a consistency and orthogonality POV... (I'm the kind of guy interested in the "phylosophical POV" if it were not clear enough!)</p>
<div class="pmsig"><div class="pmsig-409850">
<small><c>-- </c><br/>
If you can't understand the [wp://incipit], then please check the <strong>[http://blazar.tumblr.com/post/17639246|IPB Campaign]</strong>.</small>
</div></div>
724856
725022