From: Keats <ke...@su...> - 2003-07-24 13:59:07
|
I think this could work if $MyHelper is also a #const. Otherwise $MyHelper doesn't exist at build time, so this will fail. Keats -------Original Message------- From: Marc Palmer <ma...@an...> Sent: 07/24/03 07:19 AM To: web...@li... Subject: [Webmacro-devel] #const question > > Hey, Will #const work in this situation? #const $x = $MyHelper.newObject() #const $x.SomeProp = [ 1, 2, 3, 4, 5, 6 ] will all of that work, and only be done once at template build time, so that the list will not be constructed every time the template is evaluated? If so I will update the docs on wm.org TIA -- Marc Palmer Contract Java Consultant/Developer w a n g j a m m e r s java and web software design experts with an ethical outlook http://www.wangjammers.org ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Webmacro-devel mailing list Web...@li... https://lists.sourceforge.net/lists/listinfo/webmacro-devel > |