From: Keats <ke...@su...> - 2003-08-04 20:59:08
|
[I haven't figured out how to use SF's tracker so I'm responding to this here.] I can't reproduce this. Using the following test template: #set $myMap = {"Value": "Old value"} #set $myMap.Value = "A value"<br> \$myMap is $myMap I get: $myMap is {Value=A value} This is exactly what one would expect and desire. The problem *does* occur if you use the "round bracket hack" syntax. E.g., #set $myMap = {"Value": "Old value"} $myMap.put("Value","A value")<br> \$myMap is $myMap produces: Old value $myMap is {Value=A value} This is a different, and much less serious issue. The workaround of course is to use a junk variable: #set $prevValue = $myMap.put("Value","A value")<br> You could also use your own map implementation or wrapper, e.g., #set $myQuietMap = $quietMap($myMap) [It would be nice if we could specifiy the Map implementation used by WMScript by default. Can we do this now?] If you want to keep this as an enhancement request, please update the description. Personally I would give this a low priority. Keats |