On Wed, May 23, 2001 at 12:38:54PM +0800, Stas Bekman wrote:
> The problem is with TT automatically deciding what's an array and what's a
> scalar. 
[...]
> What we really need is to be have a syntax to force a list context. Doing
> rvalue [] doesn't force it of course... Hmm, how about using @ :) so it'll
> look like this:

Yes, I've been thinking about TT v3 and I think that it should support
@foo to denote list context.

In your example:
> [% @ vals = cgi.param(p) -%]

I was thinking of putting the '@' on the variable:

  [% vals = @cgi.params() %]

I'm putting together a design document outlining various ideas for 
TT3, including this one.  I'll let you know when it's up.

Cheers
A


-- 
Andy Wardley <[EMAIL PROTECTED]>   Signature regenerating.  Please remain seated.
     <[EMAIL PROTECTED]>   For a good time: http://www.kfs.org/~abw/


Reply via email to