It is usefull for  this :
 $myMap[ "My  key" ]
or
#set (  $key = "My  key"  )
$myMap[ $key ]
it is not bad to use "get", but this kind of arrays are very usual in almost
all
scripting languages, it is supported in  PHP, CFML  and languages like
C#,object pascal
have something more advanced ( indexed properties ).


> Daniel Rall <[EMAIL PROTECTED]> writes:
>
> > "Juozas Baliuka" <[EMAIL PROTECTED]> writes:
> >
> > > $myMap[ "key" ]
> > > $myMap[ $var ]
> >
> > This array index syntax is not supported, as the $myMap object is not
> > an Array object.
>
> Being very familiar with Perl and Python, I realize that other
> languages do support this sort of syntax for hash lookups.  As
> Velocity is quite Java-centric and has so far explicitly avoided
> anything resembling Perl, I wouldn't really be in favor of adding
> anything like that, either.
> --
>
> Daniel Rall <[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to