[Zope] Scoping of <dtml-let>

Charlie Reiman creiman@kefta.com
Wed, 8 Jan 2003 13:50:36 -0800


> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
> Jean-Francois.Doyon@CCRS.NRCan.gc.ca
> Sent: Wednesday, January 08, 2003 12:49 PM
> To: zope@zope.org
> Subject: [Zope] Scoping of <dtml-let>
>
>
> Hello,
>
> In my hunt for my memory leak, I have discivered I probably shouldn't use
> REQUEST.set nearly as much as I do.

The answer to your implied question ("Can I use unbalanced 'let'?") is no.
dtml-let's closest living relative is LISP let: It's an assignment that
introduces a scope.

Using REQUEST.set shouldn't lead to leaks. It was true long ago but isn't
anymore. Of course, I'm assuming you aren't creating cycles in which case
you shouldn't do that.