velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claude Brisson" <cla...@savoirweb.com>
Subject Re: POLL: null context attribute values
Date Sun, 18 Jan 2004 21:08:30 GMT
+1 also

Note that if I understand correctly, the change will not concern only method
calls but all RHSs of the set directive.
So there is no real need (other than avoiding a warning) for a "null"
keyword, koz if $null if not in the context, you can write :

#set($foo = $null)

to nullify $foo  (i.e. remove it from the context).

CloD

----- Original Message ----- 
From: "Barbara Baughman" <baughman@utdallas.edu>
To: "Velocity Users List" <velocity-user@jakarta.apache.org>
Sent: Friday, January 16, 2004 9:44 PM
Subject: RE: POLL: null context attribute values


> +1.
>
> I've got my own workarounds for the null behavior, but I'd much rather
> have it work right.  I have been bit by the unusual null behavior.
>
> Barbara Baughman
> X2157
>
> On Fri, 16 Jan 2004, Tim Colson wrote:
>
> > Peter summarized:
> > > "a", "b", null, "c" and iterate over it like:
> > > #foreach ($value in $mylist) $value #end
> > > will CURRENTLY print: a b b c
> > > and will THEN print : a b $value c
> > > The latter one feels correct for almost everyone.
> > > +1 for the switch and for setting it to the new behavior
> > > sooner than later.
> >
> > +1
> >
> > -Timo
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message