I know arrays are passed to custom tags via attributes by *value*, not
reference (as is the case for structures and so on). Is there any way of
forcing an array to be passed to a custom tag by *reference*?

I'm writing a tag that needs to recursively strip out the descendants of
hierarchical records (its an array modelling the possibly nested sections
of a website). I think it needs to recurse (call itself) to do this, and
obviously you want each recursion to operate on the same array, to
progressively strip out the children.

At the moment I'm working with the idea of the custom tag relying on the
array being worked on sitting in the Request scope. This seems OK-ish, but
obviously it makes the tag much less modular. Any ideas?


Gyrus
[EMAIL PROTECTED]
http://norlonto.net/gyrus/dev/
PGP key available

[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to