in reply to Re^4: Indirect variable name
in thread Indirect variable name
I agree with you that these are two different variable systems, and the implementation of lexicals is only half way... mainly because a lot of actions on packagevars are not possible with lexicals.
But personally I prefer halfway to nothing!
> OTOH not only do I cherish the way Perl 6 solves the issue by implementing lexical variables as package variables thus unifying the two systems into one, ...
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" ???
OTH it shouldn't be that difficult to harmonize these two systems... eg. with something like a dynamic hash %PAD for the active block as equivalent to stashes like %main:: ! %PAD would replace the use of padwalker.
Cheers LanX
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Indirect variable name
by blazar (Canon) on Nov 21, 2008 at 14:10 UTC | |
by LanX (Saint) on Nov 21, 2008 at 14:28 UTC | |
by blazar (Canon) on Nov 21, 2008 at 18:50 UTC | |
by LanX (Saint) on Nov 22, 2008 at 00:30 UTC |