velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian French" <bfre...@ematic.com>
Subject Re: Arrays in Velocity
Date Thu, 21 Mar 2002 18:58:49 GMT
do you know if anyone has written such a tool, and if so; where could i get
it from?

Brian French

----- Original Message -----
From: "Geir Magnusson Jr." <geirm@optonline.net>
To: <velocity-user@jakarta.apache.org>
Sent: Wednesday, March 20, 2002 6:40 PM
Subject: Re: Arrays in Velocity


> On 3/20/02 4:39 PM, "Brian French" <bfrench@ematic.com> wrote:
>
> > hey, i notice you have documented how to assign an array to a variable,
> > #set( $monkey.Say = ["Not", $my, "fault"] ) ## ArrayList
> >
> > is there a way to list out both the key and value in the variable?
> > ex:
> > #set( $monkey.Say = [1 = "Not","who" = $my, "what" = "fault"] ) ##
ArrayList
>
> No - we have no such mechanism for what would effectively be a Map. (Not
an
> ArrayList).
>
> While I fear I sound like a broken record
>
> [for the CD & DVD generation, that was a black plastic disk with a spiral
> groove that you would spin at constant speed and drag a metal stick over
to
> make noise from the vibration. Sometimes, when the disk was damaged, the
> stick wouldn't progress but keep skipping back into the same groove
section,
> thus repeating the sounds...]
>
> :D
>
> (sorry)
>
> I think the trick here would be a little tool to let you get at a new Map
> when you needed one
>
>   $foo = $tool.newMap()
>
> And then you can
>
>   $foo.who = $my
>   $foo.what = "fault"
>
> To your hearts content...
>
> --
> Geir Magnusson Jr.                                     geirm@optonline.net
> System and Software Consulting
> The bytecodes are language independent. - Sam Ruby
>
>
> --
> To unsubscribe, e-mail:
<mailto:velocity-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:velocity-user-help@jakarta.apache.org>
>
>


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


Mime
View raw message