On 25 July 2013 22:35, Irek Szczesniak <[email protected]> wrote:
> On Thu, Jul 25, 2013 at 4:08 PM, David Korn <[email protected]> wrote:
>> cc: [email protected]
>> Subject: Re: Re: [ast-developers] [RFE] var.__ to access the parent variable
>> of a type or compound variable
>> --------
>> Perhaps ${var..} could refer to the parent.
>
> I agree with Cedric that var.__ is more consistent (in line with
> _.var) and looks better. ${var..} doesn't feel right (no, not rational
> argument) and you didn't explain how to access a parent of a parent,
> i.e. var.__.__
>
> The idea to allow overloading to replace var.__ with a compound
> variable on demand has IMO merit too.
I agree with Irek that this proposal sounds a lot better than
${var..}. The extra dot is quickly missed when looking at a script.
BTW: ksh93v is currently alpha - can't we just try var.__ and see what happens?
Lionel
_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers