I believe this is a bug, because while the scope of function
do_local_plain is not visible in function add_eval the destination of
the variable is accessed through a name reference.

Olga

On Wed, Apr 27, 2011 at 10:40 PM, Roland Mainz <[email protected]> wrote:
> On Wed, Apr 27, 2011 at 10:33 PM, David Korn <[email protected]> wrote:
>> cc: [email protected]
>> Subject: Re: [ast-developers] Problems with "typeset -m" to move a  
>> function-local variable into a  function-local compound variable array of 
>> the calling function...
>> --------
>>
>>> While developing an application we hit a couple of problems with
>>> "typeset -m" (=move/rename variable). The basic idea is to create a
>>> variable locally and only move it into the (compound) variable array
>>> of the caller if certain conditions are met.
>>> The following testcase shows the problem:
>>> -- snip --
> [snip]
>> This is fixed for the next update.
>
> Thanks... :-)
>
>> However,  do local output the following:
>>
>> # do local
>> (
>>  [9]=(
>>  )
>> )
>>
>> I am still investigating why.  However, when it goes to execute
>>        typeset -m pos=addvar
>> the function do_local_plain scope is not visible.
>
> This is a bug, right ?
>
> ----
>
> Bye,
> Roland
>
> --
>   __ .  . __
>  (o.\ \/ /.o) [email protected]
>   \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
>   /O /==\ O\  TEL +49 641 3992797
>  (;O/ \/ \O;)
>
> _______________________________________________
> ast-developers mailing list
> [email protected]
> https://mailman.research.att.com/mailman/listinfo/ast-developers
>



-- 
      ,   _                                    _   ,
     { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
.----'-/`-/     [email protected]   \-`\-'----.
 `'-..-| /       http://twitter.com/fleyta     \ |-..-'`
      /\/\     Solaris/BSD//C/C++ programmer   /\/\
      `--`                                      `--`
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to