Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: values of associations pointed by P flag



le 23/05/2006,
Bart Schaefer nous écrivait :
> } I would like to write a function that compare 2 associative arrays.
> 
> I take it this means you'd like to write a function that takes the
> names of 2 associative arrays as arguments and compares the contents
> of those associations.

yes .. that's the fact.

> } I can use eval but the P flag looks better.
> 
> It might, but you misunderstand how it works.  (And the doc could be
> clearer, but it all stems from the fact that zsh parameter expansion
> works by passing values of parameters, not references to parameters.)

enlightenment ! thanks for your detailed explanation and exemple : my
code works fine now ! 

regards,
mc



Messages sorted by: Reverse Date, Date, Thread, Author