On Wed, 23 May 2001, Andy Wardley wrote: > 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.
Cool! how about %foo? I think I remember having a problem of @ vs % too some 6 months ago. I also think that having a built in ref() would be useful too. > In your example: > > [% @ vals = cgi.param(p) -%] > > I was thinking of putting the '@' on the variable: > > [% vals = @cgi.params() %] Are you talking about migrating @ or only at the beginning of the statements? I mean, will this work: foo.@bar ? and this "@bar"? > I'm putting together a design document outlining various ideas for > TT3, including this one. I'll let you know when it's up. Hmm, sounds interesting. Gotta go first learn the vast amount of information about v2 ;) Thank you, Andy! _____________________________________________________________________ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://apachetoday.com http://eXtropia.com/ http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
