From: Marc P. <ma...@an...> - 2003-07-14 17:11:42
|
On Mon, 14 Jul 2003 17:48:01 +0100, Marc Palmer <ma...@an...> wrote: > #set $propnameProvider.SomeProp = "marc" > #set $var = $propnameProvider.get("SomeProp").SomeOtherProp > > This looks somewhat bizarre and horrendous to me. Does -anybody-actually > use it? Let me clarify that example - the WM docs for PropertyMethod say that the above code is basically equivalent to: #set $var = $propnameProvider.marc.SomeOtherProp Which looks an ambiguity from beyond hell to me, in terms of: #set $var = $propnameProvider.get("SomeProp").SomeOtherProp ...is get("SomeProp") going to get me an object that I can use to read SomeOtherProp, or is it going to get me an object to use as a Name for a property on which I can get SomeOtherProp. It seems quite obscure. -- Marc Palmer Contract Java Consultant/Developer * Available For Hire * See my CV at http://www.anyware.co.uk/marc/ |