[Users] Re: [Devel] avpops updates

Dan Pascu dan at ag-projects.com
Sat Feb 11 16:15:54 CET 2006


On Saturday 11 February 2006 15:29, Daniel-Constantin Mierla wrote:
> On 02/11/06 00:14, Dan Pascu wrote:
> > On Friday 10 February 2006 21:44, Daniel-Constantin Mierla wrote:
> >> - avps and hdrs pseudo-variables can have dynamic names:
> >>     -$avp($pvar) refers to the avp having the name the value of
> >> $pvar -$hdr($pvar) refers to the hdr having the name the value of
> >> $pvar
> >
> > It's not clear from this description, but can we now have something
> > like $avp($avp(s:myavp)) or $hdr($avp(i:615)) or is this limited to
> > pseudo variables?
> >
> > For example would this work?
> >
> > avp_write("foo", "$avp(s:myavp)");
> > avp_write("777", "$avp(s:foo)");
>
> yes, it should work, Actually, avps can be considered parts of
> pseudo-variables (writable), they are listed in the pseudo-variables
> tutorial.
>
> > now would $avp($avp(s:myavp)) yield 777 ?
>
> yes, if not, it is a bug somewhere ...

How many levels can this go? Or is it only limited to 1 indirection?

$avp($avp($avp(...)))

-- 
Dan




More information about the Users mailing list